Specifications
359
Syntax:
HEX$(numericexpression)
Parameter:
numericexpression
A numeric expression which returns a value from -32768 to 32767.
Description:
HEX$ function converts a decimal number from -32768 to 32767 into the equivalent
hexadecimal string which is expressed with 0 to 9 and A to F.
Listed below are conversion examples.
Run-time errors:
HEXadecimal String function
HEX$
Converts a decimal number into the equivalent hexadecimal string.
numericexpression
Returned value
-32768
8000
-1
FFFF
0
0
1
1
32767
7FFF
Error code Meaning
06h
The operation result is out of the allowable range.