Whatever message this page gives is out now! Go check it out!
LSParseEuroCurrency(currency [, locale])Parameter | Description |
currency | Locale-specific string or a variable that contains one. |
locale | Locale to use instead of the locale of the page when processing the function |
<h3>LSParseEuroCurrency Example</h3>
<p>Loop through all available locales. Create string representations of the value
123,456 in the three supported currency formats,
and parse the results back to numbers.<p>
<cfloop list="#Server.Coldfusion.SupportedLocales#" index="locale" delimiters=",">
<cfset oldlocale = SetLocale(locale)>
<cfoutput><p>Current Locale: <b><i>#locale#</i></b><br>
<cfset localCurrency = LSEuroCurrencyFormat(123456, "local")>
Value in local currency: #localCurrency#<br>
Parsed using LSParseEuroCurrency:
#LSParseEuroCurrency(localCurrency)#<br>
<cfset IntlCurrency = LSEuroCurrencyFormat(123456, "international")>
Value with International currency formatting: #IntlCurrency#<br>
Parsed using LSParseEuroCurrency:
#LSParseEuroCurrency(IntlCurrency)#<br>
<cfset Currency = LSEuroCurrencyFormat(123456, "none")>
Value with no currency formatting: #currency#<br>
Parsed using LSParseEuroCurrency:
#LSParseEuroCurrency(Currency)#<br>
<hr noshade>
</cfoutput>
</cfloop>