Arithmetic of Computers

Arithmetic of Computers

from Tenscope Limited

By using this site, you are accepting "session" cookies, as set out in the site's Privacy Policy
Cookies are also used to remember which page of the book you last viewed, so that when you revisit the site you automatically return to the last page you visited.

Close

Lesson 6

The Octal System

From eight to ten

Page 182

Previous Lesson

Next Lesson


Your answer :
368 = 3010.
You are correct.
To convert an integer from the octal system to the decimal system, it is necessary only to write the octal number in expanded form; then use ordinary arithmetic to find the sum as you have been doing.
Well, we’ve tried to go easy on the arithmetic in our examples, but we are running out of simple examples. Get out pencil and paper and check the following conversions from octal to decimal. Which group contains a mistake?
Answer :
548  = 4410 2258  = 14910 7108  = 45610 1, 0008  = 51210  This group contains a mistake.

Go to Page 188

778  = 6310 3338  = 21910 5378  = 35110 6008  = 38410  This group contains a mistake.

Go to Page 194

448  = 3610 3168  = 20410 2348  = 15610 7008  = 44810  This group contains a mistake.

Go to Page 200

208  = 1610 2008  = 12810 1748  = 12410 1, 1118  = 58510  This group contains a mistake.

Go to Page 215


 

Previous Page

Next Page


Editor's Note
By re-arranging the expanded form of an octal number, we discover a more economical method of conversion. Consider, for example, the octal number 372618. This is, expanded,
3(84) + 7(83) + 2(82) + 6(81) + 1(80), 
which may be rewritten in the form
(((3 × 8 + 7) × 8 + 2) × 8 + 6) × 8 + 1.
This is simply evaluated as follows: take the first digit on the left of the octal number to be converted (the most significant digit: in this case 3), multiply by eight and add the next digit (here 7); multiply this result by eight, add in the next digit and continue in this way until the last digit (that on the extreme right, or least significant digit) is added in. Notice that the last operation is always an addition. In the case of 372618, we have:
3 × 8 = 24; 24 + 7 = 31; 31 × 8 = 248; 248 + 2 = 250; 250 × 8 = 2000; 2000 + 6 = 2006; 2006 × 8 = 16048; 16048 + 1 = 16049.  So 372618 = 1604910.