![MACROMEDIA COLFUSION MX 7 - INSTALLING AND USING COLDFUSION MX Reference Download Page 763](http://html1.mh-extra.com/html/macromedia/colfusion-mx-7-installing-and-using-coldfusion-mx/colfusion-mx-7-installing-and-using-coldfusion-mx_reference_687505763.webp)
LSParseCurrency
763
LSParseCurrency
Description
Converts a locale-specific currency string into a formatted number. Attempts conversion by
comparing the string with each the three supported currency formats (none, local, international)
and using the first that matches.
Returns
A formatted number (string representation of a number) that matches the value of the parameter.
Category
International functions
,
String functions
Function syntax
LSParseCurrency
(
string
)
See also
LSParseEuroCurrency
,
LSCurrencyFormat
,
LSEuroCurrencyFormat
,
LSIsCurrency
;
“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 standard locale formatting rules on all platforms.
Parameters
Usage
This function uses the locale formatting rules of the JVM (specified in the ColdFusion
Administrator Java and JVM page) on all platforms. These rules changed between Sun JVM 1.3.1
and JVM 1.4.1:
•
JVM 1.3.1 requires that the local and international versions of currencies of countries in the
Euro zone be formatted using the older, country-specific designations, such as 100.000,00 DM
or DEM100.000,00 for the German (Standard) locale. Use the
LSParseEuroCurrency
function to parse euro currencies in these locales with JVM 1.3.1.
•
JVM 1.4.1 requires that currencies for Euro zone countries be expressed as euros; for example
100.000,00 € or EUR100.000,00.
Note:
The
LSIsCurrency
function always returns True if the locale is in the Euro currency zone and the
currency is expressed in euros, including when using JVM 1.3.1. As a result, with older JVMs,
LSIsCurrency
does not ensure that
LSParseCurrency
returns a value.
To set the default display format of date, time, number, and currency values, use the
SetLocale
function.
Parameter
Description
string
A locale-specific string 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...