(
HEXadecimal) Hexadecimal means 16. The base 16 numbering system is used as a shorthand for representing binary numbers. Each half byte (four bits) is assigned a hex digit as shown in the following chart with its decimal and binary equivalents. Hex values are identified with an "h" or dollar sign, thus $3E0, 3E0h and 3E0H all stand for the hex humber 3E0. See
hex chart and
hex editor.
Base Base
16 10 2 16 10 2
Hex Dec Binary Hex Dec Binary
0 0 0000 A 10 1010
1 1 0001 B 11 1011
2 2 0010 C 12 1100
3 3 0011 D 13 1101
4 4 0100 E 14 1110
5 5 0101 F 15 1111
6 6 0110
7 7 0111
8 8 1000
9 9 1001
How to Interpret the Hex
As decimal digits increment by 10, hex digits increment by 16. Two hex digits make up one byte; for example, A7 is equivalent to one byte containing the binary number 10100111, or 167 in decimal. A is 10, thus 160 (10x16) plus 7 (7x1). The hex number A000 (pronounced "A thousand") is 40,960 in decimal (10x4096).