Hexadecimal-notation meaning

From the Greek hexadeca, meaning sixteen. A base-16 numbering system. The first 10 numbers are indistinguishable from decimal notation, but the next six numbers use the letters A-F.The full complement of hexadecimal digits is 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F. Programmers use hex, rather than decimal notation, because it easily translates into binary notation, which is the language of computers. It is also easier for a programmer to remember 1F1D than 00011111 00011101. As 2 4 = 16, each hex number can represent four binary digits (bits). For example, 0010 (binary) = 2 (decimal) = 2 (hex). As a better example, 1101 (binary) = 13 decimal = D (hex). Table H-3 provides a brief comparison of hexadecimal, decimal, and binary notation. See also binary notation and decimal notation.