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) → returns string

Argument Reference

String string

Sample code invoking the lsParseCurrency function

LSParseCurrency coverts a locale-specific currency string to a number.


Expected Result: 120.5

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub