The ISO 4217 minor-unit exponent of a currency: 0 for currencies with no
minor unit, such as JPY and KRW; 3 for BHD, IQD, JOD, KWD,
LYD, OMR and TND; 4 for CLF and UYW; and 2 for every other
code, including codes it does not know.
Matching is case-insensitive ('jpy' and 'JPY' give the same answer) and
covers three-letter ASCII codes only; anything else gives 2. Provider rules
that differ from ISO stay in the provider package: Stripe, for example, takes
ISK and UGX as two-decimal values and MGA as zero-decimal.
The ISO 4217 minor-unit exponent of a currency:
0for currencies with no minor unit, such asJPYandKRW;3forBHD,IQD,JOD,KWD,LYD,OMRandTND;4forCLFandUYW; and2for every other code, including codes it does not know.Matching is case-insensitive (
'jpy'and'JPY'give the same answer) and covers three-letter ASCII codes only; anything else gives2. Provider rules that differ from ISO stay in the provider package: Stripe, for example, takesISKandUGXas two-decimal values andMGAas zero-decimal.