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.
LSEuroCurrencyFormat(currency-number [, type ])
The currency value.
Currency type. Valid arguments are:
none
-- (For example, 10.00)
local
-- (Default. For example, 10.00 €)
international
-- (For example, EUR10.00)
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.
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 |
<!--- This shows LSEuroCurrencyFormat ---> <HTML> <HEAD> <TITLE>LSEuroCurrencyFormat Example</TITLE> </HEAD> <BODY> <H3>LSEuroCurrencyFormat Example</H3> <P>LSEuroCurrencyFormat returns a currency value using the locale convention. Default value is "local." <!--- loop through a list of possible locales and show currency values for 100,000 units ---> <CFLOOP LIST="#Server.Coldfusion.SupportedLocales#" INDEX="locale" DELIMITERS=","> <CFSET oldlocale = SetLocale(locale)> <CFOUTPUT><P><B><I>#locale#</I></B><BR> Local: #LSEuroCurrencyFormat(100000, "local")#<BR> International: #LSEuroCurrencyFormat(100000, "international")#<BR> None: #LSEuroCurrencyFormat(100000, "none")#<BR> <Hr noshade> </CFOUTPUT> </CFLOOP> </BODY> </HTML>