Re: Should %d round?
- Posted by kenneth Mar 22, 2012
- 1553 views
"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.