HEX$ (Function)

will create a string representation of the hexadecimal value, after it has been rounded down if it is not an integer. to  are always in uppercase. If  is negative, the 2's complement in 20 bits is shown.

will create a string representation as above, but will always create a string which is  characters long. must be between 1 and 5 (inclusive).

In particular,  gives , and   gives.