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:
8510 = 8 x 101 + 5x 100
In the octal system each place is a power of eight. For example:
2168 = 2 x 82 + 1x 81+ 6x 80
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 11510 to octal:
Division by 8 | Quotient | Remainder | Bit # |
---|---|---|---|
115/8 | 14 | 3 | 0 |
14/8 | 1 | 6 | 1 |
1/8 | 0 | 1 | 2 |
So 11510 = 1638
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 |