Converts a hex string into an integer.
HEX2INT("hextsr")
"hexstr" |
- |
A string, the hex value. |
An integer, the integer value of the hex string.
a = hex2int("0f");
b = hex2int("b1c2")
a == 15
b == 45506
The hex strings are converted to integer values.
Hex expressions are recognized directly as numeric values when the 0x prefix is attached. For example:
0x0f == 15
0xb1c2 == 45506
0x0f + 3 == 18
See SETFORMAT to automatically display numerical results in hex format.
See INT2HEX to convert an integer to a hex string.