ToNumber Converter
The ToNumber Converter operator converts types int64, uint64, float64 and string into other numeric types. When converting from float64, you can also choose the rounding behavior. Note that if converting from a string, the content of the string must be numerical.
Configuration Parameters
Parameter |
Type |
Description |
---|---|---|
roundingBehavior |
string |
How rounding will behave when converting from a float64 type. Default: "up" |
Input
Input |
Type |
Description |
---|---|---|
input |
any* |
The input value, which can be of types int64, uint64, float64, and string. |
Output
Output |
Type |
Description |
---|---|---|
outFloat |
float64 |
The input value converted to type float64. |
outInt |
int64 |
The input value converted to type int64. |
outUint |
uint64 |
The input value converted to type uint64. |