Should %d round?

new topic     » topic index » view thread      » older message » newer message

Further to a recent post, I would like to solicit general opinion on whether

    printf(1,"%d\n",3.9999999) 

should print 3 (as it does now) or 4?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu