summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/longdivision/longdivision_example.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-02-06 23:37:59 +0000
committerKarl Berry <karl@freefriends.org>2017-02-06 23:37:59 +0000
commiteb1b06cb07745cb30557b035fa78e1bd90c5df9a (patch)
treef0a02b3460ecca0eefc41756ef5a5b6eeb294fee /Master/texmf-dist/doc/latex/longdivision/longdivision_example.tex
parent3b82837a4c3eea1141abcab4c26823c64a671fe1 (diff)
longdivision (6feb17)
git-svn-id: svn://tug.org/texlive/trunk@43159 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/longdivision/longdivision_example.tex')
-rw-r--r--Master/texmf-dist/doc/latex/longdivision/longdivision_example.tex40
1 files changed, 40 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/longdivision/longdivision_example.tex b/Master/texmf-dist/doc/latex/longdivision/longdivision_example.tex
new file mode 100644
index 00000000000..ee092c84150
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/longdivision/longdivision_example.tex
@@ -0,0 +1,40 @@
+\documentclass{article}
+\usepackage{longdivision}
+
+\begin{document}
+
+\longdivision{72344}{7}
+%
+\qquad\qquad\qquad
+%
+\longdivision[2]{72344}{7}
+%
+\qquad\qquad\qquad
+%
+\intlongdivision{72344}{7}
+
+\vskip 50pt
+
+\longdivision{.1}{7} \qquad\qquad\qquad \longdivision{000.1}{7}
+%
+\qquad\qquad\qquad
+%
+\intlongdivision{1}{7} % Warning : no_division_occurred
+
+
+\longdivision[20]{1}{49}
+
+\longdivision{1}{49} % Warning : work_stopped_early
+
+\longdivision[20]{1}{97}
+
+\longdivision{1}{97} % Warning : work_stopped_early & division_stopped_early
+
+\longdivision{ 2 147 483.647 }{ 91 474 837 } % Warning : work_stopped_early & division_stopped_early
+
+% \longdivision{1..5}{7} % Error: dividend_invalid
+% \longdivision{2147483.647}{214748367} % Error : divisor_too_large
+% \longdivision{6}{1.5} % Error: divisor_not_int
+% \longdivision{6}{15a} % Error: divisor_invalid
+
+\end{document} \ No newline at end of file