Skip to content

@shawnchin /currency_subunits.py secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
currency subunits
currency_data = {
"RUB": ("Kopek", 100),
"AFN": ("Pul", 100),
"EUR": ("Cent", 100),
"ALL": ("Qindarkë", 100),
"GBP": ("Penny", 100),
"DZD": ("Santeem", 100),
"EUR": ("Cent", 100),
"AOA": ("Cêntimo", 100),
"XCD": ("Cent", 100),
"XCD": ("Cent", 100),
"ARS": ("Centavo", 100),
"AMD": ("Luma", 100),
"AWG": ("Cent", 100),
"SHP": ("Penny", 100),
"AUD": ("Cent", 100),
"EUR": ("Cent", 100),
"AZN": ("Qəpik", 100),
"BSD": ("Cent", 100),
"BHD": ("Fils", 1000),
"BDT": ("Paisa", 100),
"BBD": ("Cent", 100),
"BYR": ("Kapyeyka", 100),
"EUR": ("Cent", 100),
"BZD": ("Cent", 100),
"XOF": ("Centime", 100),
"BMD": ("Cent", 100),
"BTN": ("Chetrum", 100),
"INR": ("Paisa", 100),
"BOB": ("Centavo", 100),
"USD": ("Cent", 100),
"BAM": ("Fening", 100),
"BWP": ("Thebe", 100),
"BRL": ("Centavo", 100),
"USD": ("Cent", 100),
"USD": ("Cent", 100),
"BND": ("Sen", 100),
"SGD": ("Cent", 100),
"BGN": ("Stotinka", 100),
"XOF": ("Centime", 100),
"MMK": ("Pya", 100),
"BIF": ("Centime", 100),
"KHR": ("Sen", 100),
"XAF": ("Centime", 100),
"CAD": ("Cent", 100),
"CVE": ("Centavo", 100),
"KYD": ("Cent", 100),
"XAF": ("Centime", 100),
"XAF": ("Centime", 100),
"CLP": ("Centavo", 100),
"CNY": ("Fen", 100),
"AUD": ("Cent", 100),
"COP": ("Centavo", 100),
"KMF": ("Centime", 100),
"CDF": ("Centime", 100),
"XAF": ("Centime", 100),
"NZD": ("Cent", 100),
"CRC": ("Céntimo", 100),
"XOF": ("Centime", 100),
"HRK": ("Lipa", 100),
"CUC": ("Centavo", 100),
"CUP": ("Centavo", 100),
"ANG": ("Cent", 100),
"EUR": ("Cent", 100),
"CZK": ("Haléř", 100),
"DKK": ("Øre", 100),
"DJF": ("Centime", 100),
"XCD": ("Cent", 100),
"DOP": ("Centavo", 100),
"USD": ("Cent", 100),
"USD": ("Cent", 100),
"EGP": ("Piastre", 100),
"SVC": ("Centavo", 100),
"USD": ("Cent", 100),
"XAF": ("Centime", 100),
"ERN": ("Cent", 100),
"EUR": ("Cent", 100),
"ETB": ("Santim", 100),
"FKP": ("Penny", 100),
"DKK": ("Øre", 100),
"FJD": ("Cent", 100),
"EUR": ("Cent", 100),
"EUR": ("Cent", 100),
"XPF": ("Centime", 100),
"XAF": ("Centime", 100),
"GMD": ("Butut", 100),
"GEL": ("Tetri", 100),
"EUR": ("Cent", 100),
"GHS": ("Pesewa", 100),
"GIP": ("Penny", 100),
"EUR": ("Cent", 100),
"XCD": ("Cent", 100),
"GTQ": ("Centavo", 100),
"GBP": ("Penny", 100),
"GNF": ("Centime", 100),
"XOF": ("Centime", 100),
"GYD": ("Cent", 100),
"HTG": ("Centime", 100),
"HNL": ("Centavo", 100),
"HKD": ("Cent", 100),
"HUF": ("Fillér", 100),
"ISK": ("Eyrir", 100),
"INR": ("Paisa", 100),
"IDR": ("Sen", 100),
"IRR": ("Dinar", 100),
"IQD": ("Fils", 1000),
"EUR": ("Cent", 100),
"GBP": ("Penny", 100),
"ILS": ("Agora", 100),
"EUR": ("Cent", 100),
"JMD": ("Cent", 100),
"JPY": ("Sen", 100),
"GBP": ("Penny", 100),
"JOD": ("Piastre", 100),
"KZT": ("Tïın", 100),
"KES": ("Cent", 100),
"AUD": ("Cent", 100),
"KPW": ("Chon", 100),
"KRW": ("Jeon", 100),
"EUR": ("Cent", 100),
"KWD": ("Fils", 1000),
"KGS": ("Tyiyn", 100),
"LAK": ("Att", 100),
"LVL": ("Santīms", 100),
"LBP": ("Piastre", 100),
"LSL": ("Sente", 100),
"ZAR": ("Cent", 100),
"LRD": ("Cent", 100),
"LYD": ("Dirham", 1000),
"CHF": ("Rappen", 100),
"LTL": ("Centas", 100),
"EUR": ("Cent", 100),
"MOP": ("Avo", 100),
"MKD": ("Deni", 100),
"MGA": ("Iraimbilanja", 5),
"MWK": ("Tambala", 100),
"MYR": ("Sen", 100),
"MVR": ("Laari", 100),
"XOF": ("Centime", 100),
"EUR": ("Cent", 100),
"USD": ("Cent", 100),
"MRO": ("Khoums", 5),
"MUR": ("Cent", 100),
"MXN": ("Centavo", 100),
"USD": ("Cent", 100),
"MDL": ("Ban", 100),
"EUR": ("Cent", 100),
"MNT": ("Möngö", 100),
"EUR": ("Cent", 100),
"XCD": ("Cent", 100),
"MAD": ("Centime", 100),
"MZN": ("Centavo", 100),
"AMD": ("Luma", 100),
"NAD": ("Cent", 100),
"ZAR": ("Cent", 100),
"AUD": ("Cent", 100),
"NPR": ("Paisa", 100),
"EUR": ("Cent", 100),
"XPF": ("Centime", 100),
"NZD": ("Cent", 100),
"NIO": ("Centavo", 100),
"XOF": ("Centime", 100),
"NGN": ("Kobo", 100),
"NZD": ("Cent", 100),
"TRY": ("Kuruş", 100),
"NOK": ("Øre", 100),
"OMR": ("Baisa", 1000),
"PKR": ("Paisa", 100),
"USD": ("Cent", 100),
"ILS": ("Agora", 100),
"JOD": ("Piastre", 100),
"PAB": ("Centésimo", 100),
"USD": ("Cent", 100),
"PGK": ("Toea", 100),
"PYG": ("Céntimo", 100),
"PEN": ("Céntimo", 100),
"PHP": ("Centavo", 100),
"NZD": ("Cent", 100),
"PLN": ("Grosz", 100),
"EUR": ("Cent", 100),
"QAR": ("Dirham", 100),
"RON": ("Ban", 100),
"RUB": ("Kopek", 100),
"RWF": ("Centime", 100),
"USD": ("Cent", 100),
"DZD": ("Santeem", 100),
"MRO": ("Khoums", 5),
"MAD": ("Centime", 100),
"SHP": ("Penny", 100),
"XCD": ("Cent", 100),
"XCD": ("Cent", 100),
"XCD": ("Cent", 100),
"WST": ("Sene", 100),
"EUR": ("Cent", 100),
"STD": ("Cêntimo", 100),
"SAR": ("Halala", 100),
"XOF": ("Centime", 100),
"RSD": ("Para", 100),
"SCR": ("Cent", 100),
"SLL": ("Cent", 100),
"BND": ("Sen", 100),
"SGD": ("Cent", 100),
"USD": ("Cent", 100),
"ANG": ("Cent", 100),
"EUR": ("Cent", 100),
"EUR": ("Cent", 100),
"SBD": ("Cent", 100),
"SOS": ("Cent", 100),
"ZAR": ("Cent", 100),
"GBP": ("Penny", 100),
"RUB": ("Kopek", 100),
"EUR": ("Cent", 100),
"SSP": ("Piastre", 100),
"LKR": ("Cent", 100),
"SDG": ("Piastre", 100),
"SRD": ("Cent", 100),
"SZL": ("Cent", 100),
"SEK": ("Öre", 100),
"CHF": ("Rappen", 100),
"SYP": ("Piastre", 100),
"TWD": ("Cent", 100),
"TJS": ("Diram", 100),
"TZS": ("Cent", 100),
"THB": ("Satang", 100),
"XOF": ("Centime", 100),
"TOP": ("Seniti", 100),
"TTD": ("Cent", 100),
"SHP": ("Penny", 100),
"TND": ("Millime", 1000),
"TRY": ("Kuruş", 100),
"TMT": ("Tennesi", 100),
"USD": ("Cent", 100),
"AUD": ("Cent", 100),
"UGX": ("Cent", 100),
"UAH": ("Kopiyka", 100),
"AED": ("Fils", 100),
"GBP": ("Penny", 100),
"USD": ("Cent", 100),
"UYU": ("Centésimo", 100),
"UZS": ("Tiyin", 100),
"EUR": ("Cent", 100),
"VEF": ("Céntimo", 100),
"VND": ("Hào", 10),
"XPF": ("Centime", 100),
"YER": ("Fils", 100),
"ZMK": ("Ngwee", 100),
"BWP": ("Thebe", 100),
"GBP": ("Penny", 100),
"EUR": ("Cent", 100),
"ZAR": ("Cent", 100),
"USD": ("Cent", 100),
"ZWL": ("Cent", 100),
}
def get_subunits(cur):
return currency_data.get(cur, (None, None))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.