Re: Should %d round?

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu