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

lsEuroCurrencyFormat Argument Reference

currency string

type string

  • local
  • international
  • none

Examples sample code invoking the lsEuroCurrencyFormat function

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)>
Local: #lsEuroCurrencyFormat(100000, "local")#
International: #lsEuroCurrencyFormat(100000, "international")#
None: #lsEuroCurrencyFormat(100000, "none")#
<hr noshade>

Fork me on GitHub