4 ms·
I mean if you're storing a value of money higher than the accuracy of floating point - how are you handling it? In languages like python you can have numbers of
by devwastaken 6y ago
I mean if you're storing a value of money higher than the accuracy of floating point - how are you handling it? In languages like python you can have numbers of whichever length you want - internally it's breaking up that value into multiple primitive integer or float types I assume.
Is that similar to what you do, or are you handling that differently?
- selcuka 6y agoPython has arbitrary precision integers but floats are limited to 64 bits (i.e. the maximum is 1.8e308). Still sufficient for most financial applications though.