4 ms·
Money 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
by olivermuty 3y ago
Money 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.