This function converts a text representing a number into an integer. You can additionally define the radix (base) to be used for the conversion.
In case it is not possible to parse the text to an integer, null is returned.
Bash
toInteger(text, radix) #Output: Number
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the number: 255 |
|
Bash
|
This example returns the number: 252 |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
text |
text |
Any given text representing a number. |
|
|
text |
The radix to be applied for the conversion. |
Output
This function returns a number
(books) Use cases and examples
| Use case |
|---|
| No content found. |