longdivision – Long division arithmetic problems
This package solves long division problems and typesets the solutions. The dividend must be a positive decimal number and the divisor must be a positive integer. Repeating decimals is handled correctly, putting a bar over the repeated part of the decimal. Dividends up to 20 digits long are handled gracefully (though the typeset result will take up about a page), and dividends between 20 and 60 digits long slightly less gracefully.
The package defines two macros, \longdivision and \intlongdivision. Each takes two arguments, a dividend and a divisor. \longdivision keeps dividing until the remainder is zero, or it encounters a repeated remainder. \intlongdivision stops when the dividend stops (though the dividend doesn't have to be an integer).
The LaTeX Project Public License
|Contained in||TeX Live as longdivision|
|MiKTeX as longdivision|
perform and typeset arithmetic problems
support for typesetting mathematics
Download the contents of this package in one zip archive (29.7k).
Maybe you are interested in the following packages as well.
- bnumexpr: Extends ε-TeX’s \numexpr...\relax construct to big integers
- xlop: Calculates and displays arithmetic operations
- longdiv: Long division arithmetic problems
- realcalc: Macros for real arithmetic calculations