User Guide
748 Chapter 3: ColdFusion Functions
Note: ColdFusion maps Spanish (Modern) to the Spanish (Standard) format.
To set the default display format of date, time, number, and currency values, use the SetLocale
function.
Example
<h3>LSCurrencyFormat Example</h3>
<p>LSCurrencyFormat 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><br>
Local: #LSCurrencyFormat(100000, "local")#<br>
International: #LSCurrencyFormat(100000, "international")#<br>
None: #LSCurrencyFormat(100000, "none")#<br>
<hr noshade>
</cfoutput>
</cfloop>
Portuguese (Standard) 100.000,00 ¤
R$100.000,00
EUR100.000,00
BRC100.000,00
100.000,00
Spanish (Mexican) $100,000.00 MXN100,000.00 100,000.00
Spanish (Modern) 100.000,00 ¤
10.000.000 Pts
EUR10.000.000
ESP10.000.000
10.000.000
Spanish (Standard) 100.000,00 ¤
10.000.000 Pts
ESP10.000.000
EUR10.000.000
10.000.000
Swedish 100.000,00 kr SEK100.000,00 100.000,00
Locale Type = Local Type = International Type = None










