Best uses
- Convert base-10 values into base-8 notation.
- Practice number systems for programming or computer science.
- Check examples related to permissions or older computing systems.
To convert the whole-number part of a decimal value to octal, divide by 8 and read the remainders in reverse order. For the fractional part, multiply by 8 repeatedly and record each whole-number result until the fraction becomes 0 or reaches the precision you need. The example below shows the process:
(210.625)10 = (?)8
| Divided by 8 | Quotient | Remainder | Flow |
|---|---|---|---|
| 210 / 8 | 26 | 2 | ↑ |
| 26 / 8 | 3 | 2 | ↑ |
| 3 / 8 | 0 | 3 | ↑ |
| Multiply by 8 | Result | Non-Fractional Part | Flow |
|---|---|---|---|
| .625 * 8 | 5.00 | 5 | ↓ |
Decimal to octal conversion is useful for learning base systems and for reading examples where values are grouped by powers of 8. You may still see octal in file permission examples, older computing material, and number-system exercises where binary values are grouped into sets of three.
| Decimal | Octal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 10 |
| 9 | 11 |
| 10 | 12 |
| 11 | 13 |
| 12 | 14 |
| 13 | 15 |
| 14 | 16 |
| 15 | 17 |
| 16 | 18 |
| 17 | 19 |
| 18 | 20 |
| 19 | 21 |
| 20 | 22 |
Decimal to octal conversion uses repeated division by 8. The remainders, read from bottom to top, become the octal number.
Octal is base 8, so its digits are only 0 through 7.
210 in decimal is 322 in octal.