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.
| Field | Field Description |
|---|---|
| iso3166 | ISO 3166 alpha-2 country code |
| iso4217 | ISO 4217-1 currency code |
| iso4217units | number of decimal units used |
| scurrency | local currency symbol |
| sthousandsep | currency thousands separator character |
| sdecimalsep | currency decimal separator character |
| icurrency | positive currency amount format index |
| inegcurr | negative currency amount format index |
| scurrname | name of currency |
| sformat | additional library format information |
