Remix.run Logo
▲ knorker an hour ago

"The nearest cent" is already a bad assumption. Should IEEE 754 representation dictate taxes and money splitting?

You could end up with splitting an account down the middle, and ending up with an extra cent being created out of thin air, or one destroyed. In billions of transactions each day, this could be a problem for balancing books when there is no longer any equality check.

When not using floats, the rules and checks become more… deterministic, if you don't mind stretching the definition of that word a bit.