Skip to content

currencyDecimals

currencyDecimals(code, overrides?): number

How many decimals a currency’s minor unit has. Some services depart from ISO for a currency (Stripe sends Icelandic krónur in hundredths), so take overrides from them.

Parameter Type
code string
overrides? Readonly<Record<string, number>>

number