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
| Name | Type | Optional | Description |
|---|---|---|---|
value |
any | The value to convert. |
Outputs
| Name | Type | Description |
|---|---|---|
number |
number | The numeric value, or 0 on failure. |
success |
boolean | False if conversion failed. |