CBSE Class 11 | Number System 4

Decimal to Octal conversion

How to convert from decimal to octal

Conversion steps:

1. Divide the number by 8.
2. Get the integer quotient for the next iteration.
3. Get the remainder for the octal digit.
4. Repeat the steps until the quotient is equal to 0.

Example:1

Convert 25 decimal to octal:
(25)10 = (n)8

Division By 8 Quotient Remainder
25/8 3 1
3/8 0 3

So , we have

(25)10 = (31)8

Example:2

Convert 39 decimal to octal:
(39)10 = (n)8

Division By 8 Quotient Remainder
39/4 4 7
4/8 0 4

So , we have

(39)10 = (47)8

Example:3

Convert 125 decimal to octal:
(125)10 = (n)8

Division By 8 Quotient Remainder
125/8 15 5
15/8 1 7
1/8 0 1

So , we have

(125)10 = (175)8