Comment on page
Type conversion functions
This page goes over the type conversion functions in Upsolver.
Converts a hexadecimal string value to its corresponding decimal number.
input | result |
"###" | null |
"ff" | 255 |
"0xff" | 255 |
Convert a number to a double.
value | result |
3 | 3.0 |
3.5 | 3.5 |
Convert a number to a float.
value | result |
3 | 3.0 |
3.5 | 3.5 |
-3.5 | -3.5 |
Convert a number to an integer.
value | result |
3 | 3 |
3.5 | 3 |
-3.5 | -3 |
Convert a number to a long.
value | result |
3 | 3 |
3.5 | 3 |
-3.5 | -3 |
Convert to a number type.
value | result |
"###" | null |
"10" | 10 |
"5.1" | 5.1 |
5.1 | 5.1 |
Converts any value to a string.
input | result |
1 | "1" |
1.5 | "1.5" |
Last modified 3yr ago