ColdFusion have a function called LSEuroCurrencyFormat():
LSEuroCurrencyFormat that returns a currency value using the convention of the locale and the Euro as the currency symbol. Default value is "local."
Note The locale is set with the SetLocale function.
See, also, LSParseEuroCurrency, LSCurrencyFormat, and SetLocale.
Syntax
LSEuroCurrencyFormat(currency-number [, type ])
currency-number
The currency value.
type
Currency type. Valid arguments are:
none -- (For example, 10.00)
local -- (Default. For example, 10.00 €)
international -- (For example, EUR10.00)
Usage
The LSEuroCurrencyFormat function can display the Euro symbol (€) only on Euro-enabled computers, such as Windows NT 4.0 SP4, that have Euro-enabled fonts installed.
This function is similar to LSCurrencyFormat except that LSEuroCurrencyFormat displays the Euro currency symbol (€) or the international Euro sign (EUR) if you specify the type as local or international, respectively, and the Euro is the accepted currency of the locale.
Currency output
The following table shows sample currency output for some of the locales supported by ColdFusion in each of the format types: local, international, and none.
Currency Output by Locale
Locale Format Type Output
Dutch (Belgian) Local: 100.000,00 €
International: EUR100.000,00
None: 100.000,00
Dutch (Standard) Local: € 100.000,00
International: EUR100.000,00
None: 100.000,00
English (Australian) Local: €100,000.00
International: EUR100,000.00
None: 100,000.00
English (Canadian) Local: €100,000.00
International: EUR100,000.00
None: 100,000.00
English (New Zealand) Local: €100,000.00
International: EUR100,000.00
None: 100,000.00
English (UK) Local: €100,000.00
International: EUR100,000.00
None: 100,000.00
English (US) Local: €100,000.00
International: EUR100,000.00
None: 100,000.00
French (Belgian) Local: 100.000,00 €
International: EUR100.000,00
None: 100.000,00
French (Canadian) Local: 100 000,00 €
International: EUR100 000,00
None: 100 000,00
French (Standard) Local: 100 000,00 €
International: EUR100 000,00
None: 100 000,00
French (Swiss) Local: € 100'000.00
International: EUR100'000.00
None: 100'000.00
German (Austrian) Local: € 100.000,00
International: EUR100.000,00
None: 100.000,00
German (Standard) Local: 100.000,00 €
International: EUR100.000,00
None: 100.000,00
German (Swiss) Local: € 100'000.00
International: EUR100'000.00
None: 100'000.00
Italian (Standard) Local: € 10.000.000
International: EUR10.000.000
None: 10.000.000
Italian (Swiss) Local: € 100'000.00
International: EUR100'000.00
None: 100'000.00
Norwegian (Bokmal) Local: € 100 000,00
International: EUR100 000,00
None: 100 000,00
Norwegian (Nynorsk) Local: € 100 000,00
International: EUR100 000,00
None: 100 000,00
Portuguese (Brazilian) Local: €100.000,00
International: EUR100.000,00
None: 100.000,00
Portuguese (Standard) Local: €100.000,00
International: EUR100.000,00
None: 100.000,00
Spanish (Mexican) Local: €100,000.00
International: EUR100,000.00
None: 100,000.00
Spanish (Modern) Local: 10.000.000 €
International: EUR10.000.000
None: 10.000.000
Spanish (Standard) Local: 10.000.000 €
International: EUR10.000.000
None: 10.000.000
Swedish Local: 100.000,00 €
International: EUR100.000,00
None: 100.000,00
Sylvano
dsylvano@hotmail.com
"every and each day when I learn something new is a small victory..."