[][src]Module locale_codes::currency

Codes for the representation of currencies.

Currencies can be represented in the code in two ways: a three-letter alphabetic code and a three-digit numeric code. The most recent edition is ISO 4217:2015. The purpose of ISO 4217:2015 is to establish internationally recognised codes for the representation of currencies.

Source - ISO 4217:2015

The data used here is taken from the tables in the html page ISO.org. Additional data was taken from Forex, and XE.

Structs

CurrencyInfo

A representation of registered currency data that maintained by ISO.

Subdivision

Represents a sub-division (minor currency unit) of a currency. For example, the US Dollar (USD) has a single sub-division in that each 100th of a dollar is named a cent. This would be represented as Subdivision { exponent: 2, name: Somme("cent") }. Some currencies have different names for different subdivisionsm, or simply different names for the same.

Functions

all_alpha_codes
all_numeric_codes
currencies_for_country_name
currency_alpha_codes
currency_numeric_codes
lookup_by_alpha
lookup_by_numeric