Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

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

share|improve this answer
    
@Shane I have some problems with the english language so perhaps I don't take the good way –  Alain Matthes Mar 31 '11 at 9:05
    
This is really cool - I am hoping to have an English version at some point - do you know when the version will be ready? Thanks! –  Shane Fulmer Mar 31 '11 at 13:16
    
I can ask the author I know. There is a documentation in English. –  Alain Matthes Mar 31 '11 at 15:08
    
That would be awesome - thanks so much for your help! –  Shane Fulmer Mar 31 '11 at 15:23
    
@Altermundus is there a version that looks like 3)`3`````? –  azetina Feb 21 '12 at 18:58
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.