Octal to Hexadecimal Conversion
- Step 1: Divide the decimal number by 16.
- Step 2: Write down the quotient and remainder obtained.
- Step 3: Divide the quotient obtained by 16.
- Step 4: Repeat step 2 and step 3 until the quotient becomes 0.
- Step 5: Write the obtained remainder in reverse order.
- Step 6: Convert each obtained remainder to its corresponding hexadecimal digit.
The corresponding value of 0-9 remains the same in hexadecimal and 10-15 corresponds to A-F in hexadecimal is represented as,
10 |
11 |
12 |
13 |
14 |
15 |
---|---|---|---|---|---|
A |
B |
C |
D |
E |
F |
Example: Convert 1748 to a hexadecimal number.
Step 1: Convert 1748 to decimal
1748 = 1 × 82 + 7 × 81 + 4 × 80
1748 = 1 × 64 + 7 × 8 + 4 × 1
1748 = 64 + 56 + 4 = 124
We get 1748 = 12410
Step 2: Covert 12410 to hexadecimal124/16,
Quotient = 7, Remainder = 127/16,
Quotient = 0, Remainder = 7
Converting the obtained remainders to corresponding hexadecimal number and writing it in reverse order
we get:12410 = 7C16Hence we get 1748 = 7C16
What is Octal ?
Octal is a number system with a base of 8 i.e. it uses 8 numeric values, namely, {0, 1, 2, 3, 4, 5, 6, 7}. This number system is mostly used in the programming of computer programs. For example (32150.7642)8, (275)8, (324)8, (2243)8 are Octal numbers. In this article, we will discuss the octal number system.