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 13010 into octal number
First of all we have to divide it by the largest possible power of 8 i.e. 82
130 / 82 = 2
130 - 82*2 = 2
2 / 81 = 0
2 - 0 = 2
2/80 = 2
So the octal equivalent of 13010 is 2028
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
1238 = 1*82 + 2*81 + 3*80 = 64 + 16 + 3 = 73
So the decimal equivalent of the number 1238 is 7310
Video presentation of Decimal to Octal Conversion