Fiat rails & payments
Zero-decimal currency
Also called: zero-decimal, minor units, ISO 4217 exponent
A zero-decimal currency has no minor unit, so amounts are whole numbers with no cents equivalent. The Japanese yen and Korean won are the common examples. Payment APIs usually express amounts in the smallest unit, so one hundred dollars is sent as 10000 cents. A zero-decimal currency has no smaller unit, so the same hundred is sent as 100. Applying the same multiply-by-one-hundred rule to both is one of the most persistent integration bugs in payments, and it charges users a hundred times the intended amount.
What the product owner decides
Handle the minor-unit rule per currency from the start, and put a test for a zero-decimal currency in your suite even if you do not support one yet.
Related terms
Questions
How do I know which currencies are zero-decimal?
The ISO 4217 standard records a minor-unit exponent per currency. Read it from a library rather than hardcoding a list.
Maintained by Transak. General explanations, not legal, tax or financial advice, and not an offer or inducement to buy or sell any crypto asset. Live prices and fees are always shown before you confirm.