Not at all, no.
For such calculations, when you store back to an integer in every step, you accumulate a much bigger error in total. I don't see how floats would hurt you there in a worse way.
-
-
The alternative is not "use integers"; it's "use the right tool for the job, which is usually your language's Money or BigDecimal type".
-
If your language has such a thing, this is sane advice.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.