lsParseNumber

Converts a string that is a valid numeric representation in the current locale into a formatted number.

lsParseNumber(String) → returns numeric

lsParseNumber Argument Reference

String string
Required

Examples sample code invoking the lsParseNumber function


Simple example usage

Converts number to string and back"

str = numberFormat(42,'000.00');
num = lsParseNumber(str);
writeOutput(str&' → '&num);

Expected Result: 042.00 → 42


Fork me on GitHub