LSEuroCurrencyFormat

Description

Returns a currency value using the convention of the locale and the euro as the currency symbol. Default value is "local."

Category

International functions

Syntax


LSEuroCurrencyFormat(currency-number [, type ]) 

See also

LSParseEuroCurrency, LSCurrencyFormat, SetLocale

Parameters

Parameter
Description
currency-number
The currency value.
type
Currency type. Arguments are:
  • local    (Default. For example, 10.00€)
  • international    (For example, EUR10.00)
  • none    (For example, 10.00)

Usage

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.


Currency output

The following table shows sample currency output for some locales supported by ColdFusion, in each of the format types: local, international, and none.
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 

Example

<!--- 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>



Banner.Novgorod.Ru