HEX
Returns a string that represents, in hex, a number passed in base 10.
WebVue support - Yes.
Syntax
StrVal = HEX(Num);
Return type: STR.
|
Argument |
Meaning |
|
Num |
The number to be converted. Any numeric type. |
Execution
|
Return: |
A string that represents, in hex, the number passed in base 10. |
Example
SUB Main()
DIM intNumBase10 as Integer;
DIM strNumberHex as Str;
intNumBase10 = 14;
strNumberHex = Hex (intNumBase10);
PRINT(intNumBase10, " to base 10 is equivalent to ",strNumberHex, " to base 16");
'Displays "14 to base 10 is equivalent to E to base 16"
END SUB