Number Conversion - Octal to Hexadecimal and Hexadecimal to Octal



UpdatedUpdatedJune 04 - 2017June 04 - 2017

Octal to Hexadecimal:



Method 1 (takes more time):

Octal (base-8) to hexadecimal (base-16) conversion:
Step 1: Convert the octal number into a decimal number.
Step 2: Convert the decimal number into a hexadecimal number.



Method 2 (takes less time):

Octal (base-8) to hexadecimal (base-16) conversion:
Step 1: Convert the octal number into a binary number.
Step 2: Convert the binary number into a hexadecimal number.


Hexadecimal to Octal:



Method 1 (takes more time):

Hexadecimal (base-16) to octal (base-8) conversion:
Step 1: Convert the hexadecimal number into a decimal number.
Step 2: Convert the decimal number into an octal number.



Method 2 (takes less time):

Hexadecimal (base-16) to octal (base-8) conversion:
Step 1: Convert the hexadecimal number into a binary number.
Step 2: Convert the binary number into an octal number.