Hex$

String = Hex$ ( Number [ , Digits ] )

Gets the hexadecimal representation of a number. If Digits is specified, the representation is padded with unnecessary zeros so that Digits digits are returned.


Example

PRINT Hex$(1972)

7B4

PRINT Hex$(1972, 8)

000007B4


See also

Bin$


Previous: GOTO Next: Hour