Re:E-Stop and Fuel, software that keeps you awake at night
by _0ffh on Sunday February 11, 2018 @07:29AM
(#16352406)
Not just the US, IIRC financial institutions around the world are required to do decimal rounding. OTOH I don't see why you would even use floating point for money. Just scale your integers to the required precision (and make sure you've got enough bits for the kind of amounts you need to be able to handle) and you're good.
[ Parent
| on HN ]
There are no comments on this comment yet.