Converts a string that is a valid numeric representation in the current locale into a formatted number.
lsParseNumber(String [, locale])
returns numeric
Name | Type | Required | Default | Description |
---|---|---|---|---|
String | string | Yes | ||
locale | string | No | Locale to use instead of the locale of the page when processing the function |
Converts number to string and back”
str = numberFormat(42,'000.00');
num = lsParseNumber(str);
writeOutput(str&' → '&num);