Fraction to Decimal Calculator

Convert fractions to decimals step by step

The calculator will convert the given fraction (proper or improper) or mixed number into a decimal (possibly, repeating or recurring), with steps shown.

Enter a fraction or

If you don't need a mixed number, leave the left cell empty.
If you need a negative fraction, write the minus sign in the left cell.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Solution

Your input: convert $$$\frac{400}{5}$$$ into a decimal.

Write the problem in the special format:

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccc}\phantom{8}&\phantom{0}&\phantom{.}&\phantom{0}\end{array}&\\5&\phantom{-}\enclose{longdiv}{\begin{array}{ccc}4&0&0\end{array}}&\\&\begin{array}{lll}\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 1

How many $$$5$$$'s are in $$$4$$$? The answer is $$$0$$$.

Write down the calculated result in the upper part of the table.

Now, $$$4-0 \cdot 5 = 4 - 0= 4$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}\color{Crimson}{0}&\phantom{8}&\phantom{0}&\phantom{.}&\phantom{0}\end{array}&\\\color{Magenta}{5}&\phantom{-}\enclose{longdiv}{\begin{array}{ccccc}\color{Crimson}{4}& 0 \downarrow&0&.&0\end{array}}&\\&\begin{array}{llll}-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}4&0&\phantom{.}\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 2

How many $$$5$$$'s are in $$$40$$$? The answer is $$$8$$$.

Write down the calculated result in the upper part of the table.

Now, $$$40-8 \cdot 5 = 40 - 40= 0$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}0&\color{DarkMagenta}{8}&\phantom{0}&\phantom{.}&\phantom{0}\end{array}&\\\color{Magenta}{5}&\phantom{-}\enclose{longdiv}{\begin{array}{ccccc}4&0& 0 \downarrow&.&0\end{array}}&\\&\begin{array}{llll}-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}\color{DarkMagenta}{4}&\color{DarkMagenta}{0}&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}4&0&\phantom{.}\\\hline\phantom{lll}&0&0&\phantom{.}\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 3

How many $$$5$$$'s are in $$$0$$$? The answer is $$$0$$$.

Write down the calculated result in the upper part of the table.

Now, $$$0-0 \cdot 5 = 0 - 0= 0$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}0&8&\color{Green}{0}&\phantom{.}&\phantom{0}\end{array}&\\\color{Magenta}{5}&\phantom{-}\enclose{longdiv}{\begin{array}{ccccc}4&0&0&.& 0 \downarrow\end{array}}&\\&\begin{array}{llll}-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}4&0&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}4&0&\phantom{.}\\\hline\phantom{lll}&\color{Green}{0}&\color{Green}{0}&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{.}&\phantom{0}\\\phantom{lll}&&0&\phantom{.}\\\hline\phantom{lll}&&0&\phantom{.}&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 4

How many $$$5$$$'s are in $$$0$$$? The answer is $$$0$$$.

Write down the calculated result in the upper part of the table.

Now, $$$0-0 \cdot 5 = 0 - 0= 0$$$.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}0&8&0&.&\color{DarkCyan}{0}\end{array}&\\\color{Magenta}{5}&\phantom{-}\enclose{longdiv}{\begin{array}{ccccc}4&0&0&.&0\end{array}}&\\&\begin{array}{llll}-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}4&0&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}4&0&\phantom{.}\\\hline\phantom{lll}&0&0&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{.}&\phantom{0}\\\phantom{lll}&&0&\phantom{.}\\\hline\phantom{lll}&&\color{DarkCyan}{0}&\phantom{.}&\color{DarkCyan}{0}\\&-&\phantom{0}&\phantom{.}&\phantom{0}\\\phantom{lll}&&&\phantom{.}&0\\\hline\phantom{lll}&&&&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Since the remainder is $$$0$$$, then we are done.

Therefore, $$$\frac{400}{5}=80.0$$$

Answer: $$$\frac{400}{5}=80.0$$$