Name

LSParseEuroCurrency — New as of ColdFusion 4.01

Synopsis

LSParseEuroCurrency(string)

Returns the numeric value of string where string is a locale-specific currency amount that contains the Euro symbol. LSParseEuroCurrency( ) can be converted from any of the locale-specific Euro currency formats (None, Local, International). The following example demonstrates for each locale:

<CFLOOP INDEX="locale" LIST="#Server.Coldfusion.SupportedLocales#">
  <CFSET temp = SetLocale(locale)>
  <CFOUTPUT>
    <P><B>#locale#</B><BR>
    Local: #LSEuroCurrencyFormat(1000000.99, "local")#<BR>
    LSParseCurrency: #LSParseEuroCurrency(LSCurrencyFormat(1000000.99, "local"))#<BR>
  </CFOUTPUT>
</CFLOOP>

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.