2. Table of Hexadecimal, Decimal and Binary Numbers
Mukesh N. Tekwani
Hexadecimal
Number
Decimal
Number
Binary
Number
0 0 0000
1 1 0001
2 2 0010
3 3 0011
4 4 0100
5 5 0101
6 6 0110
7 7 0111
Hexadecimal
Number
Decimal
Number
Binary
Number
8 8 1000
9 9 1001
A 10 1010
B 11 1011
C 12 1100
D 13 1101
E 14 1110
F 15 1111
Octal
Number
Binary
Number
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
3. Hexadecimal Number to Octal Number Conversion – Example 1
Converting a Hexadecimal number (CAB)h to its Octal equivalent.
Solution:
Step 1: Convert the given hexadecimal number to its 4-bit binary equivalent
C A B
1100 1010 1011
Step 2: Starting from the LSB, form groups of 3 bits
110 010 101 011
Step 3: Starting from the LSB, replace each group of 3 bits with its equivalent octal
digit.
6 2 5 3
So, (CAB)h = (6253)8
Mukesh N. Tekwani
LSB
4. Convert the hexadecimal number (54.FB32)h to its octal equivalent.
Hexadecimal Number to Octal Number Conversion – Example 2
Mukesh N. Tekwani
So, (54.FB32)h = (124.76631)8
Solution:
Given hexadecimal number is 5 4 . F B 3 2
4-bit Binary equivalent: 0101 0100 . 1111 1011 0011 0010
Form groups of 3 bits: 001 010 100 . 111 110 110 011 001
Octal Equivalent: 1 2 4 . 7 6 6 3 1