6 ms·
https://calpaterson.com/bank-python.html https://calpaterson.com/bank-python.html > One of things that tends to boggle programmer brains is while most software
by elvinyung 4y ago
https://calpaterson.com/bank-python.html 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.
- brazzy 4y agoNo, it's because models are not accounts. They're not expected to add up exactly because they're based on approximations anyway.