8

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!

1 Answers1

10

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

Alain Matthes
  • 95,075