top | item 33980585

(no title)

elvinyung | 3 years ago

https://calpaterson.com/bank-python.html

> One of things that tends to boggle programmer brains is while most software dealing with money uses multiple-precision numbers to make sure the pennies are accurate, financial modelling uses floats instead. This is because clients generally do not ring up about pennies.

discuss

order

brazzy|3 years ago

No, it's because models are not accounts. They're not expected to add up exactly because they're based on approximations anyway.