Skip to main content

Currency codes and minor units

Aghanim specifies monetary amounts as decimal integer numbers in minor units: the smallest unit of a currency, depending on the number of decimals.

Most currencies have two decimals. Some currencies do not have decimals, and some have three decimals. For example:

  • USD 10: USD has two decimals, so in minor units will be 1000
  • JPY 10: JPY has no decimals, so in minor units will be 10
  • JOD 10: JOD has three decimals, so in minor units will be 10000

The three-letter codes presented in ISO 4217 are used as the currency code.

CodeCurrencyDecimals
AEDUAE Dirham2
AUDAustralian Dollar2
BDTBangladesh Taka2
BOBBolivia Boliviano2
BRLBrazilian Real2
CADCanadian Dollar2
CHFSwiss Franc2
CLPChilean Peso2 (differs from standard)
CNYYuan Renminbi2
COPColombian Peso2
CRCCosta Rican Colon2
CZKCzech Koruna2
DKKDanish Krone2
DZDAlgerian Dinar2
EGPEgyptian Pound2
EUREuro2
GBPPound Sterling2
GELGeorgian Lari2
GHSGhana Cedi2
HKDHong Kong Dollar2
HUFHungarian Forint2
IDRIndonesian Rupiah2
ILSNew Israeli Shekel2
INRIndian Rupee2
IQDIraqi Dinar3
JODJordanian Dinar3
JPYJapanese Yen0
KESKenyan Shilling2
KRWSouth-Korean Won0
KZTKazakhstani Tenge2
LKRSri Lanka Rupee2
MADMoroccan Dirham2
MMKMyanmar Kyat2
MOPMacau Pataca2
MXNMexican Peso2
MYRMalaysian Ringgit2
NGNNigerian Naira2
NOKNorwegian Krone2
NZDNew Zealand Dollar2
PENPeruvian Nuevo Sol2
PHPPhilippine Peso2
PKRPakistan Rupee2
PLNPolish Zloty2
PYGParaguay Guarani0
QARQatari Rial2
RONRomanian Leu2
SARSaudi Riyal2
SEKSwedish Krone2
SGDSingapore Dollar2
THBThai Baht2
TRYTurkish Lira2
TWDNew Taiwan Dollar2
TZSTanzanian Shilling2
USDUS Dollar2
VNDVietnamese New Dong0
ZARSouth African Rand2

Need help?
Contact our integration team at integration@aghanim.com