LSParseEuroCurrency
767
LSParseEuroCurrency
Description
Formats a locale-specific currency string as a number. Attempts conversion through each of the
default currency formats (none, local, international). Ensures correct handling of euro currency
for Euro zone countries.
Returns
A formatted number that matches the value of the string.
Category
International functions
,
String functions
Function syntax
LSParseEuroCurrency
(
currency-string
)
See also
LSParseCurrency
,
LSEuroCurrencyFormat
,
SetLocale
; “Locale-specific content” in
Chapter 17, “Developing Globalized Applications,” in
ColdFusion MX Developer’s Guide
History
ColdFusion MX: Changed formatting behavior: this function might return different formatting
than in earlier releases. This function uses Java locale formatting rules on all platforms, except that
it uses the rule detailed in the Usage section for countries in the Euro currency zone.
Parameters
Usage
This function determines whether the current locale’s country belongs to the Euro Zone, whose
members have converted to the euro; if so, the
currency-string
parameter must be formatted
in euros on all JVMs, including Sun JVM 1.3.1. If the country is not in the Euro zone, the string
must follow the locale formatting rules of the JVM. For examples of valid currency formats in all
supported locales, see
LSEuroCurrencyFormat
on page 752
.
For a list of the locale options that ColdFusion supports, and information on setting the default
display format of date, time, number, and currency values, see
SetLocale
.
Example
<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)>
Parameter
Description
currency-string
Locale-specific string or a variable that contains one.
Summary of Contents for COLFUSION MX 7 - INSTALLING AND USING COLDFUSION MX
Page 1: ...COLDFUSION MX7 CFML Reference...
Page 20: ...20 Chapter 1 Reserved Words and Variables...
Page 50: ...50 Chapter 2 ColdFusion Tags cfelse br Searching cfif cfloop cfif...
Page 101: ...cfdefaultcase 101 cfdefaultcase cfswitch cfoutput Your grade is grade cfoutput...
Page 115: ...cfdocumentsection 115 cfdocumentsection cfoutput cfdocument...
Page 411: ...cftable 411 cftable body html...
Page 515: ...Chr 515 maxlength 5 p input type Submit name input type RESET cfform...
Page 605: ...GetEncoding 605 WriteOutput The encoding is theEncoding cfscript cfif...
Page 629: ...GetProfileString 629 tr td input type Submit name Submit value Submit td td td tr table form...
Page 655: ...IIf 655 cfoutput IIf Hour Now GTE 12 DE It is afternoon or evening DE It is morning cfoutput b...
Page 664: ...664 Chapter 3 ColdFusion Functions cfelse h3 Conversion error h3 cfif...
Page 687: ...IsStruct 687 cfoutput cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 751: ...LSDateFormat 751 hr noshade cfoutput cfloop...
Page 861: ...StructFind 861 cfquery cfif cfoutput hr Employee Add Complete cfoutput cfcase cfswitch...
Page 903: ...Val 903 value Is the beginning numeric name form...
Page 932: ...932 Chapter 3 ColdFusion Functions...
Page 944: ...944 Chapter 4 ColdFusion MX Flash Form Style Reference...
Page 962: ...962 Chapter 5 Application CFC Reference...
Page 1054: ...1054 Chapter 6 ColdFusion MX Event Gateway Reference...