LSParseNumber()
Converts a string that is a valid numeric representation in the current locale into a formatted number.
LSParseNumber( number=string, locale=locale );
Returns: Number
Examples
writeOutput(lsParseNumber("25,000") & "<br>");
writeOutput(lsParseNumber("0012.456") & "<br>");
writeOutput(lsParseNumber(numberFormat(35,'000.00')) & "<br>");
writeOutput(lsParseNumber(01123) & "<br>");
writeOutput(lsParseNumber(23000) & "<br>");
See also
- Numbers
- Strings
- Parsing
- Internationalization
- ParseNumber()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)