HEX$/WHEX$

Top  Previous  Next

Syntax

STRING = HEX$(num as UINT64)

WSTRING = WHEX$(num as UINT64)

Description

Converts a number to a string representing the hexadecimal notation of that number.

Parameters

num - Number to convert

Return value

A string with the raw hexadecimal notation.

Remarks

HEX$ can handle 64 bit numbers, the maximum string returned will be 16 digits long. Negative quantities are represented by their twos compliment in hexadecimal.

See Also: STR$, VAL

Example usage

PRINT "0x" + HEX$(65534)