-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.tex
127 lines (80 loc) · 3.36 KB
/
example.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
\documentclass{article}
\usepackage{tikz}
\usepackage{longdivision}
\usepackage[T1]{fontenc}
\longdivisionkeys{style=standard}
\begin{document}
\longdivision{14}{7}
\longdivision[, digit separator = {,}]{12012}{12}
\longdivision[style=german, digit separator = {,}]{12012}{12}
\longdivision[, digit separator = {,}]{14.1}{7}
%\tracingall
\longdivision[, digit separator = {,}]{10}{7000}
\end{document}
%\tracingall
\longdivision[repeating decimal style = dots, digit separator = {,} ]{5.3}{37}
%\longdivision[style=standard, ]{5.3}{37}
\end{document}
%\longdivision{1}{7}
\longdivision[style=standard, stage=0]{1}{7} \quad
\longdivision[stage=1]{1}{7} \quad
\longdivision[stage=2]{1}{7} \quad
\longdivision[stage=3]{1}{7} \quad
\longdivision[stage=4]{1}{7} \quad
\longdivision[stage=5]{1}{7} \quad
\longdivision[stage=6]{1}{7}
\end{document}
%\tracingall
\longdivision[style = standard, repeating decimal style = parentheses]{2344}{7}
\longdivision[style = standard]{1}{9}
\qquad
\longdivision[style = standard, repeating decimal style = parentheses]{1}{9}
\longdivision[style = standard]{2344}{7}
\qquad
\longdivision{2344}{7}
\longdivision[style = standard, repeating decimal style = parentheses]{2344}{7}
\qquad
\longdivision[repeating decimal style = parentheses]{2344}{7}
\end{document}
\longdivision[style=standard, repeating decimal style = parentheses]{1}{9}
\longdivision[repeating decimal style = parentheses]{.2344}{7}
\longdivision[repeating decimal style = parentheses]{1}{7}
\longdivision[repeating decimal style = overline ]{6512214344}{13}
\longdivision[repeating decimal style = overline ]{6512214344}{130}
\longdivision[repeating decimal style = overline ]{6512214344}{1300}
\longdivision[repeating decimal style = overline ]{6512214344}{13000} %
\longdivision[repeating decimal style = parentheses]{.2344}{7}
\qquad\qquad\qquad
\longdivision[repeating decimal style = dots]{2344}{7}
\qquad\qquad\qquad
\longdivision[repeating decimal style = dots all]{2344}{7}
\qquad\qquad\qquad
\longdivision[repeating decimal style = overline,style=tikz]{2344}{7}
\newpage
\longdivision[repeating decimal style = parentheses,style=german]{2344}{7}
\qquad\qquad\qquad
\longdivision[repeating decimal style = dots,style=german]{2344}{7}
\qquad\qquad\qquad
\longdivision[repeating decimal style = dots all,style=german]{2344}{7}
\qquad\qquad\qquad
\longdivision[repeating decimal style = overline,style=german]{2344}{7}
\newpage
\longdivision[repeating decimal style = parentheses]{2344}{7}
\qquad\qquad\qquad
\longdivision[decimal separator in work = false]{72344}{7}
\qquad\qquad\qquad
\intlongdivision{72344}{7}
\newpage
\longdivision[repeating decimal style = parentheses]{1}{9}
\newpage
\longdivision[max extra digits = 20]{1}{49}
\longdivision{1}{49} % Warning : work_stopped_early
\end{document}
\longdivision[max extra digits = 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}