[Tex/LaTex] Decimal Long Division

math-modepackages

Does anyone know of a package or macro that handles decimal long division? For example, I want to convert 3/8 to a decimal and show all of the steps. I found a macro for longdiv that works great for integers, but was wondering if anyone knew of something that worked with decimals. If this doesn't exist yet, how would I go about writing something to do this? Thanks!

Best Answer

With a french presentation (options for other countries will be in the next version 0.3):

\documentclass[]{article}
\usepackage{xlop}

\begin{document}
\opdiv{3}{8}  

\opdiv{22}{7} 
\end{document}

enter image description here

Related Question