|Keep It Simple, Stupid|
Humans have too many fingersby LanX (Sage)
|on Jul 18, 2009 at 12:22 UTC||Need Help??|
Rule of Thumb:
To calculate dollars "accurately" with 2 decimal places, you need
So just calculate with integers in the desired accuracy and shift the decimal point afterwards²!
Background:Floats are not accurate with decimal fractions because the computer "has only two fingers".
ExperimentJust try to express 1/3 accurately in decimal system!
ConclusionHumans have too many fingers! Downsizing³ to octal system would do it...