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 write it in the comments below.

Solution

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

Temporarily forget about the integer part, work with $$$\frac{5}{7}$$$

Write the problem in the special format:

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{c}\phantom{0}&\phantom{.}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\7&\phantom{-}\enclose{longdiv}{\begin{array}{c}5\end{array}}&\\&\begin{array}{l}\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 1

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

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

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

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}\color{Green}{0}&\phantom{.}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}\color{Green}{5}&.& 0 \downarrow&0&0&0&0&0&0&0&0&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 2

How many $$$7$$$'s are in $$$50$$$? The answer is $$$7$$$.

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

Now, $$$50-7 \cdot 7 = 50 - 49= 1$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&\color{DeepPink}{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0& 0 \downarrow&0&0&0&0&0&0&0&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}\color{DeepPink}{5}&\phantom{.}&\color{DeepPink}{0}\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 3

How many $$$7$$$'s are in $$$10$$$? The answer is $$$1$$$.

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

Now, $$$10-1 \cdot 7 = 10 - 7= 3$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&\color{Peru}{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0& 0 \downarrow&0&0&0&0&0&0&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&\color{Peru}{1}&\color{Peru}{0}\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 4

How many $$$7$$$'s are in $$$30$$$? The answer is $$$4$$$.

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

Now, $$$30-4 \cdot 7 = 30 - 28= 2$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&\color{DarkCyan}{4}&\phantom{2}&\phantom{8}&\phantom{5}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0& 0 \downarrow&0&0&0&0&0&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&\color{DarkCyan}{3}&\color{DarkCyan}{0}\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&2&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 5

How many $$$7$$$'s are in $$$20$$$? The answer is $$$2$$$.

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

Now, $$$20-2 \cdot 7 = 20 - 14= 6$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&4&\color{Red}{2}&\phantom{8}&\phantom{5}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0&0& 0 \downarrow&0&0&0&0&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&\color{Red}{2}&\color{Red}{0}\\&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&1&4\\\hline\phantom{lll}&&&&&6&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 6

How many $$$7$$$'s are in $$$60$$$? The answer is $$$8$$$.

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

Now, $$$60-8 \cdot 7 = 60 - 56= 4$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&4&2&\color{Chartreuse}{8}&\phantom{5}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0&0&0& 0 \downarrow&0&0&0&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&2&0\\&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&1&4\\\hline\phantom{lll}&&&&&\color{Chartreuse}{6}&\color{Chartreuse}{0}\\&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&5&6\\\hline\phantom{lll}&&&&&&4&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 7

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

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

Now, $$$40-5 \cdot 7 = 40 - 35= 5$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&4&2&8&\color{Brown}{5}&\phantom{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0&0&0&0& 0 \downarrow&0&0&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&2&0\\&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&1&4\\\hline\phantom{lll}&&&&&6&0\\&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&5&6\\\hline\phantom{lll}&&&&&&\color{Brown}{4}&\color{Brown}{0}\\&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&3&5\\\hline\phantom{lll}&&&&&&&5&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 8

How many $$$7$$$'s are in $$$50$$$? The answer is $$$7$$$.

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

Now, $$$50-7 \cdot 7 = 50 - 49= 1$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&4&2&8&5&\color{Chocolate}{7}&\phantom{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0&0&0&0&0& 0 \downarrow&0&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&2&0\\&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&1&4\\\hline\phantom{lll}&&&&&6&0\\&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&5&6\\\hline\phantom{lll}&&&&&&4&0\\&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&3&5\\\hline\phantom{lll}&&&&&&&\color{Chocolate}{5}&\color{Chocolate}{0}\\&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&4&9\\\hline\phantom{lll}&&&&&&&&1&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 9

How many $$$7$$$'s are in $$$10$$$? The answer is $$$1$$$.

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

Now, $$$10-1 \cdot 7 = 10 - 7= 3$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&4&2&8&5&7&\color{GoldenRod}{1}&\phantom{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0&0&0&0&0&0& 0 \downarrow&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&2&0\\&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&1&4\\\hline\phantom{lll}&&&&&6&0\\&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&5&6\\\hline\phantom{lll}&&&&&&4&0\\&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&3&5\\\hline\phantom{lll}&&&&&&&5&0\\&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&4&9\\\hline\phantom{lll}&&&&&&&&\color{GoldenRod}{1}&\color{GoldenRod}{0}\\&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&7\\\hline\phantom{lll}&&&&&&&&&3&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 10

How many $$$7$$$'s are in $$$30$$$? The answer is $$$4$$$.

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

Now, $$$30-4 \cdot 7 = 30 - 28= 2$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&4&2&8&5&7&1&\color{OrangeRed}{4}&\phantom{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0&0&0&0&0&0&0& 0 \downarrow&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&2&0\\&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&1&4\\\hline\phantom{lll}&&&&&6&0\\&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&5&6\\\hline\phantom{lll}&&&&&&4&0\\&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&3&5\\\hline\phantom{lll}&&&&&&&5&0\\&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&4&9\\\hline\phantom{lll}&&&&&&&&1&0\\&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&7\\\hline\phantom{lll}&&&&&&&&&\color{OrangeRed}{3}&\color{OrangeRed}{0}\\&&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&2&8\\\hline\phantom{lll}&&&&&&&&&&2&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 11

How many $$$7$$$'s are in $$$20$$$? The answer is $$$2$$$.

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

Now, $$$20-2 \cdot 7 = 20 - 14= 6$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&4&2&8&5&7&1&4&\color{Violet}{2}&\phantom{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0&0&0&0&0&0&0&0& 0 \downarrow&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&2&0\\&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&1&4\\\hline\phantom{lll}&&&&&6&0\\&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&5&6\\\hline\phantom{lll}&&&&&&4&0\\&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&3&5\\\hline\phantom{lll}&&&&&&&5&0\\&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&4&9\\\hline\phantom{lll}&&&&&&&&1&0\\&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&7\\\hline\phantom{lll}&&&&&&&&&3&0\\&&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&2&8\\\hline\phantom{lll}&&&&&&&&&&\color{Violet}{2}&\color{Violet}{0}\\&&&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&&1&4\\\hline\phantom{lll}&&&&&&&&&&&6&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 12

How many $$$7$$$'s are in $$$60$$$? The answer is $$$8$$$.

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

Now, $$$60-8 \cdot 7 = 60 - 56= 4$$$.

Bring down the next digit of the dividend.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&4&2&8&5&7&1&4&2&\color{Fuchsia}{8}&\phantom{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0&0&0&0&0&0&0&0&0& 0 \downarrow\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&2&0\\&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&1&4\\\hline\phantom{lll}&&&&&6&0\\&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&5&6\\\hline\phantom{lll}&&&&&&4&0\\&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&3&5\\\hline\phantom{lll}&&&&&&&5&0\\&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&4&9\\\hline\phantom{lll}&&&&&&&&1&0\\&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&7\\\hline\phantom{lll}&&&&&&&&&3&0\\&&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&2&8\\\hline\phantom{lll}&&&&&&&&&&2&0\\&&&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&&1&4\\\hline\phantom{lll}&&&&&&&&&&&\color{Fuchsia}{6}&\color{Fuchsia}{0}\\&&&&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&&&5&6\\\hline\phantom{lll}&&&&&&&&&&&&4&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$

Step 13

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

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

Now, $$$40-5 \cdot 7 = 40 - 35= 5$$$.

$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{cccccccccccccc}0&.&7&1&4&2&8&5&7&1&4&2&8&\color{Purple}{5}\end{array}&\\\color{Magenta}{7}&\phantom{-}\enclose{longdiv}{\begin{array}{cccccccccccccc}5&.&0&0&0&0&0&0&0&0&0&0&0&0\end{array}}&\\&\begin{array}{lllllllllllll}-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&\phantom{.}&0\\-&\phantom{0}&\phantom{.}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}4&\phantom{.}&9\\\hline\phantom{lll}&&1&0\\&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&7\\\hline\phantom{lll}&&&3&0\\&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&2&8\\\hline\phantom{lll}&&&&2&0\\&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&1&4\\\hline\phantom{lll}&&&&&6&0\\&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&5&6\\\hline\phantom{lll}&&&&&&4&0\\&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&3&5\\\hline\phantom{lll}&&&&&&&5&0\\&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&4&9\\\hline\phantom{lll}&&&&&&&&1&0\\&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&7\\\hline\phantom{lll}&&&&&&&&&3&0\\&&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&2&8\\\hline\phantom{lll}&&&&&&&&&&2&0\\&&&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&&1&4\\\hline\phantom{lll}&&&&&&&&&&&6&0\\&&&&&&&&&&-&\phantom{0}&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&&&5&6\\\hline\phantom{lll}&&&&&&&&&&&&\color{Purple}{4}&\color{Purple}{0}\\&&&&&&&&&&&-&\phantom{0}&\phantom{0}\\\phantom{lll}&&&&&&&&&&&&3&5\\\hline\phantom{lll}&&&&&&&&&&&&&5\end{array}&\begin{array}{c}\end{array}\end{array}$$$

As can be seen, the digits are repeating with some period, therefore it is a repeating (or recurring) decimal: $$$\frac{5}{7}=0. \overline{714285}$$$

Don't forget about the integer part: $$$2\frac{5}{7}=2.\overline{714285}$$$

Answer: $$$2\frac{5}{7}=2.\overline{714285}$$$