分数转小数计算器
逐步将分数转换为小数
该计算器会将给定的分数(真分数或假分数)或带分数转换为小数(可能为循环小数),并显示步骤。
Solution
Your input: convert $$$\frac{500}{8}$$$ into a decimal.
Write the problem in the special format:
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccc}\phantom{6}&\phantom{2}&\phantom{.}&\phantom{5}\end{array}&\\8&\phantom{-}\enclose{longdiv}{\begin{array}{ccc}5&0&0\end{array}}&\\&\begin{array}{lll}\end{array}&\begin{array}{c}\end{array}\end{array}$$$
Step 1
How many $$$8$$$'s are in $$$5$$$?
The answer is $$$0$$$.
Write down $$$0$$$ in the upper part of the table.
Now, $$$5-8 \cdot 0 = 5 - 0= 5$$$.
Bring down the next digit of the dividend.
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}\color{Red}{0}&\phantom{6}&\phantom{2}&\phantom{.}&\phantom{5}\end{array}&\\\color{Magenta}{8}&\phantom{-}\enclose{longdiv}{\begin{array}{ccccc}\color{Red}{5}& 0 \downarrow&0&.&0\end{array}}&\\&\begin{array}{llll}-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&0&\phantom{.}\end{array}&\begin{array}{c}\end{array}\end{array}$$$
Step 2
How many $$$8$$$'s are in $$$50$$$?
The answer is $$$6$$$.
Write down $$$6$$$ in the upper part of the table.
Now, $$$50-8 \cdot 6 = 50 - 48= 2$$$.
Bring down the next digit of the dividend.
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}0&\color{Crimson}{6}&\phantom{2}&\phantom{.}&\phantom{5}\end{array}&\\\color{Magenta}{8}&\phantom{-}\enclose{longdiv}{\begin{array}{ccccc}5&0& 0 \downarrow&.&0\end{array}}&\\&\begin{array}{llll}-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}\color{Crimson}{5}&\color{Crimson}{0}&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}4&8&\phantom{.}\\\hline\phantom{lll}&2&0&\phantom{.}\end{array}&\begin{array}{c}\end{array}\end{array}$$$
Step 3
How many $$$8$$$'s are in $$$20$$$?
The answer is $$$2$$$.
Write down $$$2$$$ in the upper part of the table.
Now, $$$20-8 \cdot 2 = 20 - 16= 4$$$.
Bring down the next digit of the dividend.
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}0&6&\color{Chartreuse}{2}&\phantom{.}&\phantom{5}\end{array}&\\\color{Magenta}{8}&\phantom{-}\enclose{longdiv}{\begin{array}{ccccc}5&0&0&.& 0 \downarrow\end{array}}&\\&\begin{array}{llll}-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&0&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}4&8&\phantom{.}\\\hline\phantom{lll}&\color{Chartreuse}{2}&\color{Chartreuse}{0}&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{.}&\phantom{0}\\\phantom{lll}&1&6&\phantom{.}\\\hline\phantom{lll}&&4&\phantom{.}&0\end{array}&\begin{array}{c}\end{array}\end{array}$$$
Step 4
How many $$$8$$$'s are in $$$40$$$?
The answer is $$$5$$$.
Write down $$$5$$$ in the upper part of the table.
Now, $$$40-8 \cdot 5 = 40 - 40= 0$$$.
$$$\require{enclose}\begin{array}{rlc}&\phantom{-\enclose{longdiv}{}}\begin{array}{ccccc}0&6&2&.&\color{BlueViolet}{5}\end{array}&\\\color{Magenta}{8}&\phantom{-}\enclose{longdiv}{\begin{array}{ccccc}5&0&0&.&0\end{array}}&\\&\begin{array}{llll}-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}0&\phantom{.}\\\hline\phantom{lll}5&0&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{0}&\phantom{.}\\\phantom{lll}4&8&\phantom{.}\\\hline\phantom{lll}&2&0&\phantom{.}\\-&\phantom{0}&\phantom{0}&\phantom{.}&\phantom{0}\\\phantom{lll}&1&6&\phantom{.}\\\hline\phantom{lll}&&\color{BlueViolet}{4}&\phantom{.}&\color{BlueViolet}{0}\\&-&\phantom{0}&\phantom{.}&\phantom{0}\\\phantom{lll}&&4&\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{500}{8}=62.5$$$
Answer: $$$\frac{500}{8}=62.5$$$