Decimal to Octal Converter Convert your data

Input Data String

 

Output Data String

 

 

How to convert 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.

Decimal to octal conversion table

Decimal (Base 10) Octal (Base 8)
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 10
9 11
10 101
11 110
12 111
13 1000
14 1001
15 1010

 

Example

Convert 12345678910 to octal:

Division by 8 Quotient (integer) Remainder (decimal) Digit number
123456789/8 15432098 5 0
15432098/8 1929012 2 1
1929012/8 241126 4 2
241126/8 30140 6 3
30140/8 3767 4 4
3767/8 470 7 5
470/8 58 6 6
58/8 7 2 7
7/8 0 7 8
  726746425

 

12345678910 = 7267464258

 

Source