parseNumber

parseNumber 🡒 text, call function

def call parseNumber(source: text) : number

Converts the text into a number. The parser leverages the number format auto-detection behavior of Envision. If the number cannot be parsed, an error is reported, please use the tryParseNumber function for better performance and error handling.

parseNumber(source: text, tho: text, dec: text) 🡒 text, pure function

def pure parseNumber(source: text, thousandSeparator: text, decimalSeparator: text) : number
// scalar format variant
def pure parseNumber(source: text; thousandSeparator: text, decimalSeparator: text) : number

Converts the text into a number using thousandSeparator and decimalSeparator, an error will be reported in case of failure. Please use the tryParseNumber function for better performance and error handling.

See also

User Contributed Notes
0 notes + add a note