Re: Should %d round?

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

"floor()" rounds down, while "%.0f" rounds toward zero. Be careful what you ask for. I still say a programming language that doesn't store numbers by explicit type shouldn't be used for arithmetic.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu