
Chapter 15. Function Reference
321
____________________________________________________________________
HEXadecimal String function
HEX$
Converts a decimal number into the equivalent hexadecimal string.
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
HEX$(numericexpression)
Parameter:
Parameter:Parameter:
Parameter:
numericexpression
A numeric expression which returns a value from -32768 to 32767.
Description:
Description:Description:
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.
numericexpression
Returned value
-32768
8000
-1
FFFF
0
0
1
1
32767
7FFF
Run
RunRun
Run-
--
-time errors:
time errors:time errors:
time errors:
Error code Meaning
06h
The operation result is out of the allowable range.
Comentarios a estos manuales