0123456789.,

$a=$

$\text{Überprüfen}$

$\text{Neuer Versuch}$

$\text{Neue Aufgabe\vphantom{Äg}}$

\textsf\colorbox{ebe7f8}{Du erhältst die Dezimalzahl, indem du den \textcolor{#988C00}{Zähler} durch den \textcolor{#1565C0}{Nenner} dividierst.\
Berechne die Division handschriftlich.}

No selection allowed for all input boxes

Selection allowed for all input boxes

\text{Rechne den Bruch in eine Dezimalzahl um.}

Fix position and allow selection for all text objects

Empty all input boxes

#EDEDED

\textsf\colorbox{ebe7f8}{Du hast fälschlicherweise den \textcolor{#1565C0}{Nenner} durch den \textcolor{#988C00}{Zähler} dividiert.\phantom{p}
\Du musst allerdings umgekehrt den \textcolor{#988C00}{Zähler} durch den \textcolor{#1565C0}{Nenner} dividieren.}

\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad&\qquad\quad\ 

|
|
|
|
|
|

showhinttypicalerror = false
showhint = false
questionCount: 1
randomBsp = Shuffle(Sequence[Random[1, 18], i, 1, 100])
bsp = Element(randomBsp, Mod[questionCount, 100] + 1)
listNenner: {2, 4, 5, 8, 20, 25, 20, 20, 20, 25, 8, 5, 20, 8, 25, 20, 5, 8}
nenner: listNenner(bsp)
listZaehler = Shuffle(Sequence[Random[1, nenner - 1], i, 1, 100])
zaehler = Element(listZaehler, Mod[questionCount, 100] + 1)
input1: NaN
InputBox1 = Textfield(input1)
inputCorrect: Length[KeepIf[¬(temp ∈ TextToUnicode[permittedSymbols]), temp, TextToUnicode[Text[InputBox1]]]] ≟ 0
dez: zaehler / nenner
randomNosForX = Shuffle(Sequence[Random[1, 99], i, 1, 100])
numX = Element(randomNosForX, Mod[questionCount, 100] + 1)
zahlText: "\textsf{\frac{\textcolor{" + (LaTeX[If[showhint ∨ showhinttypicalerror, "#988C00", "000"]]) + "}{" + (LaTeX[zaehler]) + "}}{\textcolor{" + (LaTeX[If[showhint ∨ showhinttypicalerror, "#1565C0", "000"]]) + "}{" + (LaTeX[nenner]) + "}} =}"
Corner = Corner(zahlText, 3)
validate = false
showanswer = false
showsolution = false
attemptCount = 0
correctCount = 0
textCountCorrect: "\text{Richtig gelöste Aufgaben: " + (LaTeX[correctCount]) + " }"
showButtonNew = false
showButtonTryAgain = false
showButtonValidate = true
correct: input1 ≟ dez ∧ inputCorrect
showcorrecttext = false
PtopLeftCornerFeedback: Corner + (-0.05, -0.2)
PbottomRightCornerFeedback: Corner + (1.33, -1.05)
PtopRightCornerFeedback: (x(PbottomRightCornerFeedback), y(PtopLeftCornerFeedback))
PbottomLeftCornerFeedback: (x(PtopLeftCornerFeedback), y(PbottomRightCornerFeedback))
rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback = Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback)
allowCountIncrement = true
correct1: false
correct2: false
correct3: false
isFlink: true
tries: attemptCount
showbuttons: true
correctText: "\text{" + (LaTeX[If[correct, "✓ Richtig", "✘ Falsch"]]) + "}"
fixed = Defined(input1)
isTypicalError: input1 ≟ nenner / zaehler
solFall6: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner))]) + "& \end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aa}\underline{\hphantom{aaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&0&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&− 0&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&0&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[(floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner / 100)]) + "&" + (LaTeX[Mod[(floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner), 10]]) + "&" + (LaTeX[Mod[(floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner), 100]]) + "&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
solFall1: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "& &\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor((floor((zaehler * 10 / nenner)) * nenner / 10))]) + "&" + (LaTeX[(floor((zaehler * 10 / nenner)) * nenner) - (floor((floor((zaehler * 10 / nenner)) * nenner / 10)) * 10)]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&0&R&&&&&&&&&&&\end{tabular}\\"
solFall2: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)]) + "&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&& " + (LaTeX[zaehler]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&− " + (LaTeX[(floor((zaehler * 10 / nenner)) * nenner)]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaa}\underline{\hphantom{aaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&" + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&− " + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
solFall3: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)]) + "&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aa}\underline{\hphantom{aaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor((floor((zaehler * 10 / nenner)) * nenner / 10))]) + "&" + (LaTeX[Mod[(floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&" + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&− " + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
solFall4: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner))]) + "&" + (LaTeX[(((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10) - (floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner)) * 10 / nenner)]) + "\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aa}\underline{\hphantom{aaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&− " + (LaTeX[(floor((zaehler * 10 / nenner)) * nenner)]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&" + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&− " + (LaTeX[floor((floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner / 10))]) + "&" + (LaTeX[Mod[(floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&" + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10) - (floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&− " + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10) - (floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&\end{tabular}\\
\hphantom{aaaaaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&&0&R&&&&&&&&&\end{tabular}\\"
solFall5: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner))]) + "&" + (LaTeX[(((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10) - (floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner)) * 10 / nenner)]) + "\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aa}\underline{\hphantom{aaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor((floor((zaehler * 10 / nenner)) * nenner / 10))]) + "&" + (LaTeX[Mod[(floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&" + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&− " + (LaTeX[floor((floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner / 10))]) + "&" + (LaTeX[Mod[(floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&" + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10) - (floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&− " + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10) - (floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&\end{tabular}\\
\hphantom{aaaaaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&&0&R&&&&&&&&&\end{tabular}\\"
solFall7: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner))]) + "& \end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aa}\underline{\hphantom{aaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor((floor((zaehler * 10 / nenner)) * nenner / 10))]) + "&" + (LaTeX[Mod[(floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler - floor((floor((zaehler * 10 / nenner)) * nenner / 10))]) + "&" + (LaTeX[Mod[(zaehler * 10) - floor((floor((zaehler * 10 / nenner)) * nenner)), 10]]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor(((floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner)) / 100)]) + "&" + (LaTeX[Mod[(floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner), 10]]) + "&" + (LaTeX[Mod[(floor((((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)) * nenner), 100]]) + "&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaa}\underline{\hphantom{aaaaaaa}}\\

\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
solFall8: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[floor(zaehler / 10)]) + "&" + (LaTeX[Mod[zaehler, 10]]) + "&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&& \end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&−&&0&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaa}\underline{\hphantom{aaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[floor(zaehler / 10)]) + "&" + (LaTeX[Mod[zaehler, 10]]) + "&0&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor((floor((zaehler * 10 / nenner)) * nenner / 100))]) + "&" + (LaTeX[Mod[(floor((zaehler * 10 / nenner)) * nenner), 100] / 10]) + "&" + (LaTeX[Mod[(floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
solFall9: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)]) + "&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor(((floor((zaehler * 10 / nenner)) * nenner)) / 10)]) + "&" + (LaTeX[Mod[(floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&" + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&− " + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
solFall10: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)]) + "&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[zaehler]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor(((floor((zaehler * 10 / nenner)) * nenner)) / 10)]) + "&" + (LaTeX[Mod[(floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[floor(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) / 10)]) + "&" + (LaTeX[Mod[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) / 10)]) + "&" + (LaTeX[Mod[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&0&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
solFall11: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&" + (LaTeX[floor(zaehler / 10)]) + "&" + (LaTeX[Mod[zaehler, 10]]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)]) + "&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&" + (LaTeX[floor(zaehler / 10)]) + "&" + (LaTeX[Mod[zaehler, 10]]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− " + (LaTeX[floor(((floor((zaehler * 10 / nenner)) * nenner)) / 100)]) + "&" + (LaTeX[Mod[((floor((zaehler * 10 / nenner)) * nenner)) / 10, 10]]) + "&0&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[floor(((zaehler * 10) - floor((floor((zaehler * 10 / nenner)) * nenner))) / 10)]) + "&" + (LaTeX[Mod[(zaehler * 10) - floor((floor((zaehler * 10 / nenner)) * nenner)), 10]]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) / 10)]) + "&" + (LaTeX[Mod[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&0&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
solFall12: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&" + (LaTeX[floor(zaehler / 10)]) + "&" + (LaTeX[Mod[zaehler, 10]]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)]) + "&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&" + (LaTeX[floor(zaehler / 10)]) + "&" + (LaTeX[Mod[zaehler, 10]]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− " + (LaTeX[floor(((floor((zaehler * 10 / nenner)) * nenner)) / 100)]) + "&" + (LaTeX[floor(Mod[((floor((zaehler * 10 / nenner)) * nenner)) / 10, 10])]) + "&" + (LaTeX[Mod[(floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&" + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&− " + (LaTeX[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)]) + "&0&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
solFall13: "\textsf{
\setlength{\tabcolsep}{" + (LaTeX[-30]) + "}
\renewcommand{\arraystretch}{" + (LaTeX[0.7]) + "}
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&" + (LaTeX[floor(zaehler / 10)]) + "&" + (LaTeX[Mod[zaehler, 10]]) + "&&:&&" + (LaTeX[nenner]) + "&&=&&0&,&" + (LaTeX[floor((zaehler * 10 / nenner))]) + "&" + (LaTeX[(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) * 10 / nenner)]) + "&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− &0&&&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&" + (LaTeX[floor(zaehler / 10)]) + "&" + (LaTeX[Mod[zaehler, 10]]) + "&0&&&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&− " + (LaTeX[floor(((floor((zaehler * 10 / nenner)) * nenner)) / 100)]) + "&" + (LaTeX[floor(Mod[((floor((zaehler * 10 / nenner)) * nenner)) / 10, 10])]) + "&" + (LaTeX[Mod[(floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&&&&&&&&&&&&\end{tabular}\\
\hphantom{aaa}\underline{\hphantom{aaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&" + (LaTeX[floor(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) / 10)]) + "&" + (LaTeX[Mod[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&0&&&&&&&&&&&\end{tabular}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&− " + (LaTeX[floor(((zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner)) / 10)]) + "&" + (LaTeX[Mod[(zaehler * 10) - (floor((zaehler * 10 / nenner)) * nenner), 10]]) + "&0&&&&&&&&&&&\end{tabular}\\
\hphantom{aaaaa}\underline{\hphantom{aaaaaaa}}\\
\begin{tabular}{rrrrrrrrrrrrrrrrrr}" + (LaTeX[txtSpacer]) + "&&&&0&R&&&&&&&&&&\end{tabular}\\"
fallForSol = If(zaehler ≟ 1 ∧ nenner ≟ 2, 1, If[zaehler ≟ 1 ∧ nenner ≟ 4, 2, If[zaehler ≟ 2 ∧ nenner ≟ 4, 1, If[zaehler ≟ 3 ∧ nenner ≟ 4, 3, If[zaehler ≟ 1 ∧ nenner ≟ 5, 1, If[zaehler ≟ 2 ∧ nenner ≟ 5, 1, If[zaehler ≟ 3 ∧ nenner ≟ 5, 1, If[zaehler ≟ 4 ∧ nenner ≟ 5, 1, If[zaehler ≟ 1 ∧ nenner ≟ 8, 4, If[zaehler ≟ 2 ∧ nenner ≟ 8, 3, If[zaehler ≟ 3 ∧ nenner ≟ 8, 5, If[zaehler ≟ 4 ∧ nenner ≟ 8, 1, If[zaehler ≟ 5 ∧ nenner ≟ 8, 5, If[zaehler ≟ 6 ∧ nenner ≟ 8, 3, If[zaehler ≟ 7 ∧ nenner ≟ 8, 5, If[zaehler ≟ 1 ∧ nenner ≟ 20, 6, If[zaehler ≟ 2 ∧ nenner ≟ 20, 1, If[zaehler ≟ 3 ∧ nenner ≟ 20, 7, If[zaehler ≟ 4 ∧ nenner ≟ 20, 1, If[zaehler ≟ 5 ∧ nenner ≟ 20, 7, If[zaehler ≟ 6 ∧ nenner ≟ 20, 1, If[zaehler ≟ 7 ∧ nenner ≟ 20, 7, If[zaehler ≟ 8 ∧ nenner ≟ 20, 1, If[zaehler ≟ 9 ∧ nenner ≟ 20, 7, If[zaehler ≟ 10 ∧ nenner ≟ 20, 8, If[zaehler ≟ 11 ∧ nenner ≟ 20, 11, If[zaehler ≟ 12 ∧ nenner ≟ 20, 8, If[zaehler ≟ 13 ∧ nenner ≟ 20, 11, If[zaehler ≟ 14 ∧ nenner ≟ 20, 8, If[zaehler ≟ 15 ∧ nenner ≟ 20, 11, If[zaehler ≟ 16 ∧ nenner ≟ 20, 8, If[zaehler ≟ 17 ∧ nenner ≟ 20, 11, If[zaehler ≟ 18 ∧ nenner ≟ 20, 8, If[zaehler ≟ 19 ∧ nenner ≟ 20, 11, If[zaehler ≟ 1 ∧ nenner ≟ 25, 6, If[zaehler ≟ 2 ∧ nenner ≟ 25, 6, If[zaehler ≟ 3 ∧ nenner ≟ 25, 9, If[zaehler ≟ 4 ∧ nenner ≟ 25, 10, If[zaehler ≟ 5 ∧ nenner ≟ 25, 1, If[zaehler ≟ 6 ∧ nenner ≟ 25, 10, If[zaehler ≟ 7 ∧ nenner ≟ 25, 10, If[zaehler ≟ 8 ∧ nenner ≟ 25, 9, If[zaehler ≟ 9 ∧ nenner ≟ 25, 10, If[zaehler ≟ 10 ∧ nenner ≟ 25, 8, If[zaehler ≟ 11 ∧ nenner ≟ 25, 11, If[zaehler ≟ 12 ∧ nenner ≟ 25, 11, If[zaehler ≟ 13 ∧ nenner ≟ 25, 12, If[zaehler ≟ 14 ∧ nenner ≟ 25, 13, If[zaehler ≟ 15 ∧ nenner ≟ 25, 8, If[zaehler ≟ 16 ∧ nenner ≟ 25, 11, If[zaehler ≟ 17 ∧ nenner ≟ 25, 11, If[zaehler ≟ 18 ∧ nenner ≟ 25, 12, If[zaehler ≟ 19 ∧ nenner ≟ 25, 13, If[zaehler ≟ 20 ∧ nenner ≟ 25, 8, If[zaehler ≟ 21 ∧ nenner ≟ 25, 11, If[zaehler ≟ 22 ∧ nenner ≟ 25, 11, If[zaehler ≟ 23 ∧ nenner ≟ 25, 12, If[zaehler ≟ 24 ∧ nenner ≟ 25, 13]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]])
sol: {solFall1, solFall2, solFall3, solFall4, solFall5, solFall6, solFall7, solFall8, solFall9, solFall10, solFall11, solFall12, solFall13}
solutionText: "\text{Lösung:\\" + (LaTeX[sol(fallForSol)]) + ""
PLeft = (4.581777218908891, 4.027689902983577)
PRight = (6.981777218908889, 4.027689902983577)
text2: "\textsf{" + (LaTeX[zaehler]) + " : " + (LaTeX[nenner]) + " =}"
Pos = If(nenner ≟ 20 ∨ nenner ≟ 25, (4.9, 5.5), (5.05, 5.5))

Tool: NumberSeparationComma
NumberSeparationComma[ <Zahl> ]
Input: inputnumber
Output: outputtext

inputnumber: -1234.5678
inputtext: "" + inputnumber + ""
inputlist = Sequence(Take[inputtext, i, i], i, 1, Length[inputtext])
negativ: First[inputlist] ≟ {"-"}
comma = Defined(IndexOf[".", inputlist])
point = If(comma ≟ true, IndexOf[".", inputlist], Length[inputlist] + 1)
dezimal = Take(inputlist, point + 1)
prepend = Take(inputlist, If[negativ ≟ true, 2, 1], point - 1)
prependsep = Reverse(Join[Sequence[If[Mod[Length[prepend] - 2 - i, 3] ≟ 0, Append[Take[prepend, i, i], " "], Take[prepend, i, i]], i, Length[prepend], 1, -1]])
outputlist = RemoveUndefined(Join[{If[negativ ≟ true, {"-"}], If[First[prependsep] ≟ {" "}, Take[prependsep, 2], prependsep], If[comma ≟ true, Append[",", dezimal]]}])
outputtext = Take(Sum[Zip[f, f, outputlist]], 1)