分数转小数计算器
逐步将分数转换为小数
该计算器会将给定的分数(真分数或假分数)或带分数转换为小数(可能为循环小数),并显示步骤。
Solution
Your input: convert $$$\frac{400}{20}$$$ into a decimal.
Write the problem in the special format:
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccc}\phantom{2}&\phantom{0}&\phantom{.}&\phantom{0}\end{array}&\\20&\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 $$$20$$$'s are in $$$4$$$?
The answer is $$$0$$$.
Write down $$$0$$$ in the upper part of the table.
Now, $$$4-20 \cdot 0 = 4 - 0= 4$$$.
Bring down the next digit of the dividend.
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}\color{DarkBlue}{0}&\phantom{2}&\phantom{0}&\phantom{.}&\phantom{0}\end{array}&\\\color{Magenta}{20}&\phantom{-}\enclose{longdiv}{\begin{array}{ccccc}\color{DarkBlue}{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 $$$20$$$'s are in $$$40$$$?
The answer is $$$2$$$.
Write down $$$2$$$ in the upper part of the table.
Now, $$$40-20 \cdot 2 = 40 - 40= 0$$$.
Bring down the next digit of the dividend.
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}0&\color{Chocolate}{2}&\phantom{0}&\phantom{.}&\phantom{0}\end{array}&\\\color{Magenta}{20}&\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{Chocolate}{4}&\color{Chocolate}{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 $$$20$$$'s are in $$$0$$$?
The answer is $$$0$$$.
Write down $$$0$$$ in the upper part of the table.
Now, $$$0-20 \cdot 0 = 0 - 0= 0$$$.
Bring down the next digit of the dividend.
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}0&2&\color{DarkMagenta}{0}&\phantom{.}&\phantom{0}\end{array}&\\\color{Magenta}{20}&\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{DarkMagenta}{0}&\color{DarkMagenta}{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 $$$20$$$'s are in $$$0$$$?
The answer is $$$0$$$.
Write down $$$0$$$ in the upper part of the table.
Now, $$$0-20 \cdot 0 = 0 - 0= 0$$$.
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}0&2&0&.&\color{Purple}{0}\end{array}&\\\color{Magenta}{20}&\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{Purple}{0}&\phantom{.}&\color{Purple}{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}{20}=20.0$$$
Answer: $$$\frac{400}{20}=20.0$$$