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
|
This example returns the number: 3.14 |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any given text representing a number. |
Output
This function returns a number
📚 Use cases and examples
| Use case | Workflow function | Field type | Parser functions |
|---|---|---|---|
| Create a sub-task for every sub-task closed |
findReplaceFirst() first() findPattern() toString() sum() toNumber() |
||
| Set the next fix version | |||
| Sum of Tempo billable hours | |||
| Set custom IDs for each issue | |||
| Calculate custom sequence numbers |