How to Convert Octal to Decimal

Learning about decimal and octal numeric systems is a basic tool that most people dabbling in software should understand. They need to know how to convert between the various forms to make sense of what's in front of them.
There are four main number systems in the world: the binary system, the octal system, the decimal system and the hexadecimal system. We will discuss these two systems first before we proceed to the octal number conversion to decimal.

Decimal and Octal Number Systems

Everyone knows the decimal number system. It is the main number system we use today, and has 10 discrete digits from 0 to 9. The octal system on the other hand has only 8 digits (hence the name octal). The numbers in an octal system are only from 0-7. That means, there is no 8 and 9 in a normal octal system.

Now, while the decimal system is the most commonly used number system for most of the counting that we have to do, where is the octal system used? The octal system is used mainly in computer programming languages. There is a relationship between the octal and the binary system, which makes it very useful while programming computers. It is also often used in place of the hexadecimal system (16 digits), as it has fewer digits.

Conversions Between the Two

It is one of the most commonly taught problem solving exercises in computer basics. An octal number can be converted to a decimal number using the following formula:

Decimal Form = Ʃ(ai x 8i)

In this formula, 'a' is the individual digit being converted, while 'i' is the number of the digit counting from the right-most digit in the number, the right-most digit starting with 0.

For example:

Convert (765)8 into decimal:

(765)8 = (7 x 82) + (6 x 81) + (5 x 80)

= (7 x 64) + (6 x 8) + (5 x 1)

= 448 + 48 + 5

= 501

Hence (765)8 = (501)10

We'll take one more example with a four digit number:

Convert (1336)8 to decimal:

(1336)8 = (1 x 83) + (3 x 82) + (3 x 81) + (6 x 80)

= (1 x 512) + (3 x 64) + (3 x 8) + (6 x 1)

= 512 + 192 + 24 + 6

= 734

Thus (1336)8 = (734)10

Try this exercise out with the following numbers:

(5467)8

(6345)8

(76534)8

Answers:

1.2871
2.3301
3.32092

This is a very simple and common mathematics exercise for learning the basics of information technology. I hope you are now able to face it!
Like This Article?
Follow:
Post Comment | View Comments
Your Comments:
Your Name: