I want to display a long division procedure as illustrated. enter image description here

I did search but couldn't find what I'm looking for. Any help is much appreciated.


1 Answer 1


With the package longdivision, you obtain almost the desired output (but as a French, I don't known this strange notation, see the documentation of the package xlop about division for the French notation).


enter image description here

  • 1
    (+1) Please edit it a bit so that the output fits the OP's picture fully (i.e. it should be 11700 instead of 117 in the third line).
    – user156344
    Feb 25, 2019 at 6:09
  • @JouleV It’s why I say "you obtain almost the desired output" and "I don’t known this strange notation" (In France, we use other notation). I don’t known is my answer is perfect. If not, is this a bug of the longdivision package?
    – quark67
    Feb 25, 2019 at 11:54
  • @quark67, thank you. I wonder why this is not working if I want to do the long division of -37/44. My aim is to display that and write the continued fraction expansion.
    – Eureka
    Feb 25, 2019 at 14:30
  • @Fib1123 The package longdivision doesn't handle negative numbers. You can use the command longdivision{37}{44} instead intlongdivision{37}{44}, this give a continued fraction expansion, but I don't known if the displayed output is what you want (decimal numbers in the continued fraction expansion, in French notation, there are not decimal numbers in the continued fraction expansion).
    – quark67
    Feb 25, 2019 at 15:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .