Thanks for linking my article on the Modern Treasury blog! I always saw the convention to use integers everywhere so I wanted to dive into why.
I really like your framing of don't allow your data to go into invalid states in the first place, it's really the right mindset when thinking about reliable money movement.
Great post on how to not mess up your ledger!
Even though it's mentioned implicitly, part of this has been a problem before computers. It's an intrinsic arithmetic problem.
You can see how you need to allocate in "arbitrary fashion" when paying installments for a loan.
Regardless, Banker's rounding is a fun topic on itself.
https://en.wikipedia.org/wiki/Rounding#Round_half_to_even
Keep these posts coming!
Thanks for linking my article on the Modern Treasury blog! I always saw the convention to use integers everywhere so I wanted to dive into why.
I really like your framing of don't allow your data to go into invalid states in the first place, it's really the right mindset when thinking about reliable money movement.