Currently in sidecar/src/utils/currency.js formatAmount and formatAmountLocale use decimalPrecision set by the Administrator or the User respectively. If there is no preference setting it defaults to 2 decimal places.
However, there are situations where a Sugar client may want to use multiple currencies.
We for one use USD, JPY, GBP, EUR.
Each currency should display, report, print (in quotes, PDF documents etc) with the appropriate decimal precision, determined by ISO-4217. For example zero decimal places for JPY.
It would be nice if this was implemented by default based on ISO-4217 specifications, or added to the currency table so that each Administrator can set each currency's decimal precision when setting up their instance's currencies.