Hacker News new | ask | show | jobs
by simpsond 31 days ago
An integer for the value (scaled by number of decimals) and an integer value for the number of decimals. Different systems may use different values, even for the same currency or asset.
1 comments

What exactly do you think a floating point number is?
Usually that, but in binary, which causes lots of headaches for financial math.
For those who don't understand what they're doing, yes. But those people end up having headaches and causing trouble no matter what.
So all the people who write financial software and avoid floats don't know what they're doing? That's would end up being just about everyone. You should teach them, you know so much more than they do.