LSParseCurrency()

edit

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.

LSParseCurrency( string=string, locale=locale );

Returns: String

Argument Description
string
string, required
edit

A locale-specific string

Alias: currency, number

locale
locale, optional
edit

Locale to use instead of the locale of the page when processing the function

Examples

edit
<cfoutput>
	#LSParseCurrency(4.5)#<br>
	#LSParseCurrency("$4.50")#<br>
	#LSParseCurrency("£4.50", "English (UK)")#
</cfoutput>

See also