4 ms·
> "Integer number of cents" is a fine way to deal with money unless you want sub-cent units I use this approach to minimize the amount of time I have to waste
by twelve40 4y ago
> "Integer number of cents" is a fine way to deal with money unless you want sub-cent units
I use this approach to minimize the amount of time I have to waste on trivial money operations such as storage and api's, but this approach (number of cents) falls apart quickly the moment you need to do something as simple as calculate tax or a commission. So, still likely no getting around proper float math even if you may not really be all that interested in sub-cent units.