International Currency Formats

International Currency Format

Library and ISO 4217 Database

This library and database were developed from our own needs ... we were developing internationalized web based ecommerce applications and needed a low overhead, portable, cross platform library that would allow us to easily and correctly format and display international currencies on-the-fly.

We started by purchasing the official ISO 4217 standards specification rather than relying on freely available and often inaccurate copies found through out the web.

The currency format remains active until you explicitly load a different format. Thus you could load the format for US dollars for the life of your program. Or you could load a default format of say Pounds Sterling and on the fly change the currency profile to Euro dollars.


ISO 4217 Currency Database Record Layout
FieldField Description
iso3166ISO 3166 alpha-2 country code
iso4217ISO 4217-1 currency code
iso4217unitsnumber of decimal units used
scurrencylocal currency symbol
sthousandsepcurrency thousands separator character
sdecimalsepcurrency decimal separator character
icurrencypositive currency amount format index
inegcurrnegative currency amount format index
scurrnamename of currency
sformatadditional library format information

Perl Edition
Price: $24.95 USD