Returns a currency value using the convention of the locale and the euro as the currency symbol. Default value is "local."
LSEuroCurrencyFormat(currency-number [, type ])
LSParseEuroCurrency,
LSCurrencyFormat,
SetLocale
Parameter |
Description |
---|---|
currency-number |
The currency value. |
type |
Currency type. Arguments are:
|
LSEuroCurrencyFormat
can display the Euro symbol (€) only on Euro-enabled computers 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.
Note The locale is set with the SetLocale function. |
The following table shows sample currency output for some locales supported by ColdFusion, in each of the format types: local
, international
, and none
.
<!--- 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 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>