Re: Should %d round?
- Posted by petelomax Mar 21, 2012
- 1666 views
ArthurCrump said...
I would recommend using "%d" only when the parameter is known to be an integer. Otherwise use "%.0f" to obtain a rounded result.
Thank you everyone, esp the above suggestion.
Pete