Section 2.4
Hexadecimal Number System


The hexadecimal system uses base 16. Thus, it has 16 possible digit symbols. It uses the digits 0 through 9 plus the letters A, B, C, D, E, and F as the 16 digit symbols.

16316216116016-116-216-3
=4096=256=16=1.=1/16=1/256=1/4096
Most Significant DigitHexadec. pointLeast Significant Digit

Hexadecimal to Decimal Conversion

eg. 2AF16 = 2 x (162) + 10 x (161) + 15 x (160) = 68710

Repeat Division: Convert decimal to hexadecimal
This method uses repeated division by 16. Eg. convert 37810 to hexadecimal and binary:

378/16 = 23+ remainder of 10A (Least Significant Bit)
23/ 16 = 1 + remainder of 77
1 / 16 = 0 + remainder of 1 1 (Most Significant Bit)
Result37810 = 17A8
Convert to Binary= 0001 0111 10102
= 0000 0001 0111 1010 (16 bits)

Binary-To-Hexadecimal /
Hexadecimal-To-Binary Conversion

Hexadecimal Digit01234567
Binary Equivalent00000001001000110100010101100111

Hexadecimal Digit89ABCDEF
Binary Equivalent10001001101010111100110111101111

Each Hexadecimal digit is represented by four bits of binary digit.

eg. 1011 0010 11112 = (1011) (0010) (1111)2 = B 2 F16


Octal-To-Hexadecimal /
Hexadecimal-To-Octal Conversion

1) Convert Octal (Hexadecimal) to Binary first.
2a) Regroup the binary number in 3 bits a group starts from the LSB if Octal is required.
Go back to
Section 2.3 if you are not sure how to group in Octal.
2b) Regroup the binary number in 4 bits a group from the LSB if Hexadecimal is required.

eg. Convert 5A816 to Octal .

5A816

= 0101 1010 1000 (Binary)

 

= 2 6 5 0 (Octal)