Macromedia coldfusion 4.5-cfml language reference Benutzerhandbuch
Chapter 2: ColdFusion Functions
453
LSParseCurrency
Converts a locale-specific currency string to a number. Attempts conversion through
each of the three default currency formats (none, local, international). Returns the
number matching the value of string.
each of the three default currency formats (none, local, international). Returns the
number matching the value of string.
See, also,
LSCurrencyFormat
and
LSParseEuroCurrency
.
Syntax
LSParseCurrency(
string)
string
The locale-specific string you want to convert to a number.
Currency output
The following table shows sample currency output for some of the locales supported
by ColdFusion in each of the format types:
by ColdFusion in each of the format types:
local
,
international
, and
none
.
Currency Output by Locale
Locale
Format Type Output
Dutch (Belgian)
Local: 100.000,00 BF
International: BEF100.000,00
None: 100.000,00
International: BEF100.000,00
None: 100.000,00
Dutch (Standard)
Local: fl 100.000,00
International: NLG100.000,00
None: 100.000,00
International: NLG100.000,00
None: 100.000,00
English (Australian)
Local: $100,000.00
International: AUD100,000.00
None: 100,000.00
International: AUD100,000.00
None: 100,000.00
English (Canadian)
Local: $100,000.00
International: CAD100,000.00
None: 100,000.00
International: CAD100,000.00
None: 100,000.00
English (New Zealand)
Local: $100,000.00
International: NZD100,000.00
None: 100,000.00
International: NZD100,000.00
None: 100,000.00
English (UK)
Local: £100,000.00
International: GBP100,000.00
None: 100,000.00
International: GBP100,000.00
None: 100,000.00
English (US)
Local: $100,000.00
International: USD100,000.00
None: 100,000.00
International: USD100,000.00
None: 100,000.00