## Decimal to Octal Conversion

Any decimal number can be converted into octal number system by dividing it by the largest possible power of 8. The remainder then again divided by the largest possible power of 8, this method is repeated until the power of 8 is 1 and the remainder obtained is less than 8. The result is obtained by arranging the obtained quotients as they are acquired. The method will be clear by a simple example.

Let us convert 130_{10} into octal number

First of all we have to divide it by the largest possible power of 8 i.e. 8^{2}

130 / 8^{2} = 2

130 - 8^{2}*2 = 2

2 / 8^{1} = 0

2 - 0 = 2

2/8^{0} = 2

So the octal equivalent of 130_{10} is 202_{8}

## Octal to Decimal Conversion

Similarly any octal number can be converted into decimal number. The method is quite similar to the transformation of any binary number to decimal number, the only difference is that in this case the 2 s will be replaced by 8 and e3verything else i.e. the methods will remain same. So it is quite clear if we want to change any octal number into decimal number we have to start multiplying the digits of the number from right hand side with increasing powers of 8 staring from 0 and finally summing up all the products. The method will be clearer with an example.

Suppose we want to convert 1238into decimal number, so we have to follow the procedure as shown below

123_{8} = 1*8^{2} + 2*8^{1} + 3*8^{0} = 64 + 16 + 3 = 73

So the decimal equivalent of the number 123_{8} is 73_{10}

### Video presentation of Decimal to Octal Conversion