Hexadecimal to Octal Number
To convert a Hexadecimal number to an Octal number we have to First convert the Hexadecimal number to a Decimal number and then the Decimal number to an Octal number.
Steps to Convert Hexadecimal Number to Decimal Number
We can use following steps to convert hexadecimal number to decimal numbers.
Step 1: Write the corresponding decimal value for the given hexadecimal number.
Step 2: Multiply each digit of the obtained number with an increasing power of 16 starting from the rightmost digit.
Step 3: Sum all the products obtained in step 2.
Steps to Convert Decimal Number to Octal Number
We can use following steps to convert decimal number to octal numbers.
Step 1: Divide the given decimal number by 8.
Step 2: Write down the quotient and remainder obtained.
Step 3: Divide the quotient obtained by 8.
Step 4: Repeat step 2 and step 3 until the quotient becomes 0.
Step 5: Write the obtained remainder in reverse order.
Let’s consider an example for better understanding.
Example: Convert 9B16 to Octal Number.
Solution:
Step 1: First convert 9B16 to decimal number:
Corresponding decimal value of 9 and B are 9 and 11 respectively.
9B16 = 9 × 161 + 11 × 160
9B16 = 9 × 16 + 11 × 1
9B16 = 144 + 11 = 155
We get 9B16 = 15510
Step 2: Convert 15510 to Octal Number
155/8, Quotient = 19, Remainder = 3
19/8, Quotient = 2, Remainder = 3
2/8, Quotient = 0, Remainder = 2
Writing the obtained remainders in reverse order we get:
15510 = 2338
Hence we get 9B16 = 2338
Octal Number System
Octal Number System is a number system with base 8 as it uses eight symbols (or digits) namely 0, 1, 2, 3, 4, 5, 6, and 7. For example, 228, 138, 178, etc. are octal numbers. This number system is mainly used in computer programming as it is a compact way of representing binary numbers with each octal number corresponding to three binary digits.
In this article, we will discuss Octal Numbers System, Octal Number System Conversions, Octal Number System Examples, and Others in detail.
Table of Content
- Octal Number System Definition
- Octal to Decimal Numbers
- Octal to Hexadecimal Number
- Octal to Binary Number
- Octal Multiplication Table