### 6. Converting octal numbers to decimal and binary numbers

posted Jun 30, 2014, 9:54 PM by Maurice Nyamoti   [ updated Jul 27, 2014, 8:43 AM ]

## Converting octal numbers to decimal and binary numbers

### Converting octal numbers to decimal

The method of converting octal numbers to decimal numbers is similar as converting binary numbers to to decimal. However, place values increases by a factor of 8. Notify that octal numbers have the following range of digits 0,1,2,3,4,5,6,7 which count to 8.  A number like 896 is not a valid octal numbers because it has 8 and 9 digits
To convert octal numbers to decimal, proceed as follows in the example:
• Convert 7528 to its base 10 equivalent.

Step1: write each number under its place value as shown below

 Place value 82 81 80 64 8 1 Octal digit 7 5 2

Step2: multiply each number by its place value then add the results

Thus: (64x7) + (8x5) + (1x2)

448+40+2

= 490

Therefore, 7528 = 49010

### Convert octal fraction to decimal fraction

Problem 1: Convert ( 2 1 . 2 1 )8= ( ? )10
2 1 .  2  1
↑            ↑
MSD         LSD

= 2 x 81 + 1 x 80 .  2 x 8-1 + 1 x 8-2

= 2 x 8 + 1 x 1 .  2 x ( 1 / 8 ) + 1 x ( 1 / 64 )

= 16 +  1  .  ( 0. 2 5 ) +  ( 0 . 0 1 5 6 2 5 )

= 17 +  0. 265625

= 17 . 265625

Therefore  ( 2 1 . 2 1 )8 =  ( 1 7 . 2 6 5 6 2 5 )10

### Converting octal numbers to binary

Number system conversion table
Decimal
Base 10
Binary
Base 2
Octal
Base 8
Hexadecimal
Base 16
0 0 0 0
1 1 1 1
2 10 2 2
3 11 3 3
4 100 4 4
5 101 5 5
6 110 6 6
7 111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
16 10000 20 10
Procedure
1. The highest digit in the octal number system is (7)8, from the number system conversion table we can see that (111)2 is the binary equivalent of the highest octal digit and three binary digits(bits) are required to represent the highest octal digit.
2. In the octal to binary conversion method, we will convert each digit from the given octal number into three bit binary number starting from the right most octal digit(LSD) to the left most digit(MSD) and at the end combine each three bit binary number to form the binary equivalent of given octal number.
3. The steps involved in the octal to binary conversion is explained with example below:

Example-1: Convert octal number (375)8 to binary number (?)2

Step 1: Write down each digit from the given octal number leaving some space between each octal digit as shown below

Octal Number -> 3     7     5

Step 2: If you have memorized the binary equivalents of all the octal digits this step becomes very easy, otherwise you can still refer the conversion table to find the binary equivalents of each octal digit.
Write down the three bit number below each octal digit as shown below:

Octal Number -> 3     7     5

Binary Number -> 011 111 101

Hence, the binary equivalent of the given octal number is (11111101)2

### Convert octal fraction to decimal fraction

Problem 1: Convert ( 2 1 . 2 1 )8= ( ? )10

2 1 .  2  1
↑            ↑
MSD         LSD

= 2 x 81 + 1 x 80 .  2 x 8-1 + 1 x 8-2

= 2 x 8 + 1 x 1 .  2 x ( 1 / 8 ) + 1 x ( 1 / 64 )

= 16 +  1  .  ( 0. 2 5 ) +  ( 0 . 0 1 5 6 2 5 )

= 17 +  0. 265625

= 17 . 265625

Therefore  ( 2 1 . 2 1 )8 =  ( 1 7 . 2 6 5 6 2 5 )10

### Review questions

1. Convert ( 0.357 )8= ( ? )10
Answer: highlight on blank space below to see answers
Therefore  ( 0 . 3 5 7)8 =  ( 0 . 466796875 )10
2. Convert ( 100.01 )8= ( ? )10
Answer: highlight on blank space below to see answers
Therefore  ( 1 0 0 . 0 1 )8 =  ( 64 . 0 1 5 6 2 5 )10

#### More Questions

3.       Convert the following octal numbers to decimal numbers

a)       778

b)       648

c)       1028

d)       12008

e)       10008

f)        1738

g)       1238

h)       7778

i)         3458

j)        10.1668

4.       Convert the following octal numbers to their binary equivalents

a)       2448

b)       2478

c)       1628

d)       5658

e)       2228

f)        33708

g)       14138

h)       13318

i)         63478

j)        466538

Comments