3 ms·
This covered the API nicely but said nothing about how the amounts were internally-modeled and how rounding was dealt with. It was only mentioned. I had an ide
by pmarreck 2y ago
This covered the API nicely but said nothing about how the amounts were internally-modeled and how rounding was dealt with. It was only mentioned.
I had an idea for a fixed-decimal class (that would also be useful for a money class) that held all inflight amounts as fractions and only did the division and float rounding when you needed to view the amount.