Data / Conversion data/to_number

To Number

Converts a value (usually a string) to a number.

Note: Check the success output before using the result if the input may not always be a valid number.

Inputs

NameTypeOptionalDescription
value any The value to convert.

Outputs

NameTypeDescription
number number The numeric value, or 0 on failure.
success boolean False if conversion failed.