LSEuroCurrencyFormat

Formats a number in a locale-specific currency format.
[type - quicky]
local: the currency format used in the locale. (Default.)
international: the international standard currency format
none: the currency format used; no currency symbol

LSEuroCurrencyFormat(currency, type) → returns String

Argument Reference for the LSEuroCurrencyFormat function

currency

Required: Yes

type

Required: Yes
Values:
  • local
  • international
  • none

Examples sample code invoking the LSEuroCurrencyFormat function


Tag Example

returns a currency value using the locale convention. Default value is local.

<!--- Loop through list of locales, 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> 
 Local: #LSEuroCurrencyFormat(100000, "local")# 
 International: #LSEuroCurrencyFormat(100000, "international")# 
 None: #LSEuroCurrencyFormat(100000, "none")# 
 <Hr noshade> 
 </cfoutput> 
 </cfloop> 

Fork me on GitHub