FutureProg functions
tonumber
Overload 1
tonumber overload 1
Number tonumber(Text text)
Available in
- computer function
- computer program
- standard futureprog
Parses text into a number. If parsing fails, the result is 0.
| Parameter | Type | Description |
|---|---|---|
text |
Text |
The text to parse. |
Overload 2
tonumber overload 2
Number tonumber(Text text, Number fallback)
Available in
- computer function
- computer program
- standard futureprog
Parses text into a number, returning the supplied fallback number when parsing fails.
| Parameter | Type | Description |
|---|---|---|
text |
Text |
The text to parse. |
fallback |
Number |
The number to return if the text cannot be parsed. |