Type Conversions Functions

HEX_TO_DECIMAL

Converts a hexadecimal string value to its corresponding decimal number.

input result
"###" null
"ff" 255
"0xff" 255

TO_DOUBLE

Convert a 'Number' to a 'Double'.

value result
3 3.0
3.5 3.5

TO_FLOAT

Convert a 'Number' to a 'Float'.

value result
3 3.0
3.5 3.5
-3.5 -3.5

TO_INT

Convert a 'Number' to an 'Int'.

value result
3 3
3.5 3
-3.5 -3

TO_LONG

Convert a 'Number' to a 'Long'.

value result
3 3
3.5 3
-3.5 -3

TO_NUMBER

Convert to a 'Number' type.

value result
"###" null
"10" 10
"5.1" 5.1
5.1 5.1

TO_STRING

Converts any value to string.

input result
1 "1"
1.5 "1.5"