tryParseNumber

tryParseNumber(source: text, thousandSeparator: text, decimalSeparator: text) 🡒 (boolean, number), pure function

Returns a (boolean, number) tuple. The first argument is the value to be parsed. The second and third arguments are the number format. The returned Boolean flag is true if the value has been parsed. The returned number value is non-default only if the parsing succeeded.

See also

User Contributed Notes
0 notes + add a note