3 ms·
Using floats to store monetary data is considered 'a very bad idea' in the financial world. Mostly due to how floating point numbers are rounded up/down based o
by cbcoutinho 7y ago
Using floats to store monetary data is considered 'a very bad idea' in the financial world. Mostly due to how floating point numbers are rounded up/down based on the precision.
https://stackoverflow.com/a/3730040/5536001 https://stackoverflow.com/a/3730040/5536001