Money and Finance

ISO 4217 Currency Codes and Decimal Places: A Practical Guide

What ISO 4217 currency codes and numbers mean, which currencies have 0 or 3 decimals, recent changes like ZWG and XCG, and how to store money amounts.

Saizul Amin
Saizul Amin30 Oct 2026 · 3 min read
ISO 4217 Currency Codes and Decimal Places: A Practical Guide

ISO 4217 Currency Codes and Decimal Places: A Practical Guide

Every price, invoice and payment needs a currency, and the international way to name it is ISO 4217. The ISO 4217 Currency Code Lookup finds codes, numbers and decimal places and formats amounts correctly.

Codes and numbers

Each currency has a three-letter code and a three-digit number. The letters usually combine the ISO 3166 country code with the currency's initial: USD, GBP, JPY. The number often matches the country's numeric code: 840 for the United States and USD. Codes beginning with X are special: XAF and XOF for the CFA francs, XCD for the East Caribbean dollar, XDR for the IMF's Special Drawing Right, and XAU for gold.

Minor units

DecimalsCurrencies (examples)
0JPY, KRW, CLP, ISK, VND, PYG, UGX, XAF, XOF, XPF
2USD, EUR, GBP, CNY, INR, BRL and most others
3BHD, IQD, JOD, KWD, LYD, OMR, TND

Payment APIs often take amounts in minor units: 10.50 USD is 1050, 1,050 JPY is 1050, and 1.250 KWD is 1250. Treating every currency as two-decimal is a classic bug: Japanese customers charged a hundred times too little, or Kuwaiti prices rounded wrongly.

Recent changes

  • Sierra Leone redenominated, and SLE replaced SLL.
  • Zimbabwe introduced the Zimbabwe Gold, ZWG, in 2024.
  • The Caribbean guilder, XCG, replaced the Netherlands Antillean guilder in 2025.
  • Croatia adopted the euro in 2023, and Bulgaria on 1 January 2026.
  • Venezuela has VES and the digital bolívar VED.

A worked example

Searching "dinar" lists eight currencies. BHD (048) has three decimals, so 1234.5678 formats as 1234.568 BHD.

Storing money in software

  • Store the currency code with every amount.
  • Use integers of minor units or exact decimals, never binary floating point.
  • Round only at defined steps, using the currency's decimals.
  • Show amounts with the code (or an unambiguous symbol) to avoid confusion between dollars and pesos.

Where to get the official list

The maintenance agency for ISO 4217 publishes the current lists, including historic codes, on behalf of ISO. Systems should update from the official list when amendments are published.

Test several scenarios

Numbers from any model are only as good as the inputs. Before acting on a result, change the key assumptions up and down and see how much the answer moves. If a small change in one input flips the conclusion, treat the result with caution and look for better data. Keep a short note of the inputs you used, the date and the source of each figure, so that you can repeat the calculation later and compare it with what actually happened. Over time this record shows which assumptions were reliable and which were too optimistic, and it makes your next decision better informed.

Share the result clearly

When you present the result to colleagues, a lender or an investor, show the inputs next to the outputs and explain the main assumption in one sentence. People trust numbers they can trace. A short table with the key figures, the date and the source of the data is usually more convincing than a long explanation.

Exchange rates and rounding

When converting between currencies, apply the exchange rate to the exact amount and round the result to the target currency's decimals, not before. For example, converting 1,000.00 USD at a rate of 149.237 JPY per USD gives 149,237 JPY, with no decimals. Converting 100 USD to KWD at 0.30712 gives 30.712 KWD, with three decimals. Record the rate and its source with each transaction for audit purposes.

Limits

A reference aid. Use the official ISO 4217 list for production systems.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages