Hacker News new | ask | show | jobs
by elvinyung 1282 days 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.

1 comments

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