It's OK To Use Floating Point for Money

33 points by technomancy


faassen

I once worked as a contractor and was paid by the hour. I had my own hour tracker and also had to put the same information into a third party system they used. I spent quite a bit of time trying to figure out the discrepancy between mine and theirs once. There just was a difference of a few minutes I couldn't explain; theirs didn't add up properly, mine did. I'm convinced that was because they stored time as a floating point number. And in this case, time was money.