Original thread. I want to make the long division represented with floating point, but i have strange results. The numbers are not aligned (with yellow). And some numbers are far away(red).
\documentclass{article}
\usepackage[TABcline]{tabstackengine}
\TABstackMath
\renewcommand\stackalignment{l}
\newcommand\lminus{\llap{$-$}}
{\catcode`-=\active
\gdef -{\lminus}}
\newcommand\minusactive{\phantom{-}\catcode`-=\active}
\setstacktabbedgap{3pt}
\begin{document}
\begin{tabular}{ll@{\hspace{10ex}}c}
$
\minusactive
\tabbedShortunderstack[r]{
&7,&6&2&4&:4=1,815\\
-&4&& &&&\\
\TABcline{2,3}
& &3&2&&&&\\
&-&3&2&&&&\\
\TABcline{3,4}
& & & &6& &&\\
& & &-&4& &&\\
\TABcline{5}
& & & & 2&0&\\
& & & -& 2&0&\\
\TABcline{5}
& & & &0&
}
$
\end{tabular}
\end{document}