Hex, Hex$ Functions

Language Items List

Definition:

Converts a decimal number into a hexadecimal value.

Syntax:

Hex[$](number)


Syntax Description


number Any numeric expression

Details:

Hex and Hex$ return a String that represents the hexadecimal value of the specified decimal number.

You can represent hexadecimal numbers directly by giving numbers in the proper range the prefix &H. For example, &Hff represents decimal 255 in hexadecimal notation.

Hexadecimal notation is a way of counting using 16 digits, which easily converts back and forth from binary. The digits in hex include 0-9 and A-F. For example, Hex A equals decimal 10, F equals decimal 15, and so on.

See Also:

Oct, Oct$ Functions