Hexadecimal to Octal Conversion



Hexadecimal to Octal Conversion

The hexadecimal to octal conversion can be perform in the same way as the octal to hexadecimal as explained above. To convert a given hexadecimal number to octal number, we first convert the given hexadecimal number to binary and then the binary number to the octal.

The step-by-step procedure to convert a hexadecimal number to its equivalent octal number is explained below −

Step 1 − Convert each hexadecimal digit to its equivalent 4-bit binary.

Step 2 − Make groups of 3-bits each of the obtained binary number.

Step 3 − Convert each 3-bit binary group to its equivalent octal number.

The following examples demonstrate the method of converting a given hexadecimal number to its equivalent octal number.

Example 1

Convert (B3A9.5F)16 to octal.

Solution

The conversion of the given hexadecimal number to its equivalent octal number is explained below −

Hex Digits B 3 A 9 . 5 F
4-bit Binary 1011 0011 1010 1001 . 0101 1111
3-bit Binary 001 011 001 110 101 001 . 010 111 110
Octal Digits 1 3 1 6 5 1 . 2 7 6

Thus, the octal equivalent of the given hexadecimal number is (131651.276)8.

Example 2

Convert (AC.F)16 to octal.

Solution

The conversion of given hexadecimal number to its equivalent octal number is demonstrated below −

Hex Digits A C . F
10 12 . 15
4-bit Binary 1010 1100 . 1111
3-bit Binary 010 101 100 . 111 100
Octal Digits 2 5 4 . 7 4

Hence, the octal equivalent of the given hexadecimal number is (254.74)8.

Advertisements