3 ms·
That's not how floating point works though. The precision is by definition floating. With a sufficiently large number, your least significant bit of precision
by dmoy 8y ago
That's not how floating point works though. The precision is by definition floating. With a sufficiently large number, your least significant bit of precision might be in the 10s or 100s or more of dollars (or whatever currency).
Your issue then is that if you combine a large enough number with anything, then you get precision loss and money just starts disappearing (or appearing out of nowhere).
Even if your hyperinflation was over ten orders of magnitude less bad than Zimbabwe's (decimal orders of magnitude even), you would run into floating point precision loss with a 64 bit floating point number.
- JoeAltmaier 8y agoA double has 15 digits. Which counts more money than exists anywhere added up. Not a problem I'm thinking?
- jimktrains2 8y agoAnd ieee floating point still can't store 10¢ exactly.
- dmoy 8y agoI dunno, South korea's M2 would need 17 or 18 digits to represent I think. Edit: Japan too. Say south korea has a few years of hyperinflation, not even anywhere close to zimbabwe bad, and you'd have money disappearing right & left.