# Decimal to octal

This converter can convert decimal numbers to octal numbers very quickly, both negative and floating-point numbers are supported for conversion. At the same time, you can also choose any conversion between binary to base 36. Octal to decimal converter

Base(default decimal) | |

Decimal number | |

Target base(default octal) | |

Conversion result |

## Knowledge of converter

The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal numerals can be made from binary numerals by grouping consecutive binary digits into groups of three (starting from the right). For example, the binary representation for decimal 74 is 1001010. Two zeroes can be added at the left: (00)1 001 010, corresponding the octal digits 1 1 2, yielding the octal representation 112.

In the decimal system each decimal place is a power of ten. For example:

85_{10} = 8 x 10^{1} + 5x 10^{0}

In the octal system each place is a power of eight. For example:

216_{8} = 2 x 8^{2} + 1x 8^{1}+ 6x 8^{0}

## How to convert decimal to octal

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

**Example**

Convert 115_{10} to octal:

Division by 8 | Quotient | Remainder | Bit # |
---|---|---|---|

115/8 | 14 | 3 | 0 |

14/8 | 1 | 6 | 1 |

1/8 | 0 | 1 | 2 |

So 115_{10} = 163_{8}

## Decimal to octal conversion table

Decimal Number | Octal Number |
---|---|

0 | 0 |

1 | 1 |

2 | 2 |

3 | 3 |

4 | 4 |

5 | 5 |

6 | 6 |

7 | 7 |

8 | 10 |

9 | 11 |

10 | 12 |

20 | 24 |

50 | 62 |

100 | 144 |

1000 | 1750 |