toNumber()

This function converts a text representing a number into a number.

This function expects a decimal representation of a number. In case it is not possible to parse the text to a number and null is returned.

Bash
toNumber(text) #Output: Number

Examples

Parser expression

Description

Bash
 toNumber("3.14")

This example returns the number:

3.14

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

text

text

Any given text representing a number.

Output

This function returns a number


(books) Use cases and examples