Zero-decimal and three-decimal currencies: how to send payment amounts

Updated 2026-11-25 · by Bob, payments QA engineer

Payment APIs take amounts as integers in the currency's minor unit: 10.99 EUR is sent as 1099. That rule silently breaks for currencies that do not have 2 decimals. Send 50000 for 500 JPY and you charge 50 000 yen; send 1000 for 1 KWD and you charge 0.1 KWD.

The ISO 4217 list

ISO 4217 says how many decimal places (“minor units”) each currency has. Most have 2. The exceptions:

DecimalsCurrencies
0BIF, CLP, DJF, GNF, ISK, JPY, KMF, KRW, PYG, RWF, UGX, VND, VUV, XAF, XOF, XPF
3BHD, IQD, JOD, KWD, LYD, OMR, TND
4CLF, UYW (units of account, not used for card payments)

Look up any currency with the currency codes tool: it shows the minor units next to the code and number.

Providers do not always follow ISO

So the same 1 000 ISK is 1000 by ISO but 100000 for both Stripe and Adyen. Keep the exponent per provider, not one global table.

Convert without floating-point errors

19.99 * 100 is 1998.9999999999998 in JavaScript and Python. Parse the decimal string instead of multiplying floats:

// JavaScript: "19.99" + 2 decimals → 1999
function toMinor(amount, decimals) {
  const [int, frac = ''] = String(amount).split('.');
  if (frac.length > decimals) throw new Error('too many decimals for this currency');
  return BigInt(int + frac.padEnd(decimals, '0'));
}
toMinor('19.99', 2);   // 1999n  (EUR)
toMinor('500', 0);     // 500n   (JPY)
toMinor('1.250', 3);   // 1250n  (KWD)
# Python
from decimal import Decimal
def to_minor(amount: str, decimals: int) -> int:
    q = Decimal(amount).scaleb(decimals)
    if q != q.to_integral_value():
        raise ValueError("too many decimals for this currency")
    return int(q)

Store money as integer minor units or as Decimal, never as float.

Bugs to test for

Good QA cases: 1 JPY, 1 KWD (= 1000), 0.001 KWD, the minimum and maximum amount for each currency, and a refund of part of a three-decimal amount. Use sandbox test cards to run them against your provider.

Sources: ISO 4217 data; Stripe “Supported currencies” and Adyen “Currency codes” documentation (checked 25 Nov 2026).

← All guides