Decimal to Octal Converter

You are Here:

Calculator

The following calculator will help you to convert a Decimal number to a Octal number.

Examples

In this example, we will convert a positive decimal number (50) to a octal number (62).

NumberCalculationSimplify
50801
50818
508264

Note: 64 is greater than 50, so, stop the table.

CalculationQuotientRemainder
50 / 862
2 / 120

50 (decimal) = 62 (Octal)

Note: Read the Quotient from top to bottom.

Explanation: 8 and 1 in 'Calculation' column of table 2 is taken from the 'Simplify' column of table 1.

Examples

In this example, we will convert a negative decimal number (-100) to a octal number (-144).

NumberCalculationSimplify
100801
100818
1008264
10083512

Note: 512 is greater than 100, so, stop the table.

CalculationQuotientRemainder
100 / 64136
36 / 844
4 / 140

-100 (decimal) = -144 (Octal)

Note: Read the Quotient from top to bottom.

Explanation: 64, 8 and 1 in 'Calculation' column of table 2 is taken from the 'Simplify' column of table 1. For negative decimal to octal number, proceed the steps as same as positive decimal to octal number and finally multiply the output by '-1'.

Examples

In this example, we will convert a fractional decimal number (5.015625) to a octal number (5.01).

Here, we have to split the fractional binary number into two parts.

  1. Integer part - 5
  2. Fraction part - 0.015625

Now, convert the Integer part of the given binary number (5) into a octal number.

NumberCalculationSimplify
5801
5818

Note: 8 is greater than 5, so, stop the table.

CalculationQuotientRemainder
5 / 150

5 (decimal) = 5 (octal)

Note: Read the Quotient from top to bottom.

Explanation: 1 in 'Calculation' column of table 2 is taken from the 'Simplify' column of table 1.

Now, convert the Fraction part of the given binary number (0.015625) into a octal number.

NumberCalculationSimplifyIntegerfraction
0.0156250.015625 * 80.12500.125
0.1250.125 * 81.010

0.015625 (decimal) = .01 (octal)

Note: There is no fraction part, so, stop the table and read the Integer from top to bottom.

Now, add both the results

5.015625 = 5 + 0.1

5.015625 (binary) = 5.01 (octal)

Useful links

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author