Hex$ Function

Returns a string representing a specified number in hexadecimal format.

Syntax
Hex$(number)

Parameters

number
Specify an integer value.

Return Values
Returns a string containing the ASCII representation of the number in hexadecimal format.

Description
Hex$ returns a string representing the specified number in hexadecimal format. Each character is from 0 to 9 or A to F. Hex$ is especially useful for examining the results of the Stat function.

See Also
Str$, Stat, Val

Hex$ Function Example

> print hex$(stat(0))
A00000
> print hex$(255)
FF