4 ms·
Also, money is usually kept as integer of cents. It is clear, inambiguous and allows for other rounding rules that sometimes pop up in legislation.
by sam_lowry_ 3y ago
Also, money is usually kept as integer of cents. It is clear, inambiguous and allows for other rounding rules that sometimes pop up in legislation.
- olivermuty 3y agoMoney exists outside us dollar and should be stored ideally a a composite of currency and decimal or just a decimal. Then use currency specific rounding rules and always defer to CLDR [0] when displaying. 1. https://cldr.unicode.org/translation/number-currency-formats/number-and-currency-patterns https://cldr.unicode.org/translation/number-currency-formats...
- jojobas 3y agoThere is always a main currency for any entity, so any foreign currency dealings or having a reporting currency adds some fun in the form of changing exchange rates, realized/unrealized exchange rate differences, rounding errors and other shenanigans.