Name

LSParseCurrency

Synopsis

LSParseCurrency(string)

Returns the numeric value of string where string is a locale-specific currency amount. LSParseCurrency( ) can be converted from any of the locale-specific 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: #LSCurrencyFormat(1000000.99, "local")#<BR>
    LSParseCurrency: #LSParseCurrency(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.