summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ionumbers/ionumbers_test.tex
blob: f13cd53e947ff57f3fdbe1c4b6962dd4f8647671 (plain)
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
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% test file for ionumbers package
%
% Copyright 2008 Christian Schneider <software(at)chschneider(dot)eu>
%
% This file is part of ionumbers.
%
% ionumbers is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License version 3 as
% published by the Free Software Foundation, not any later version.
%
% ionumbers is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with ionumbers.  If not, see <http://www.gnu.org/licenses/>.
%
% WARNING: THIS IS ALPHA SOFTWARE AND MAY CONTAIN SERIOUS BUGS!
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass{article}

\usepackage{ionumbers}

\begin{document}
  \noindent
  \begin{minipage}{0.5\textwidth}
    \centering
    \begin{tabular}{r@{\hspace{1em}}r@{\hspace{1em}}r}
      \hline\hline
      Input & Output \\
      \hline\hline
      \verb!1234567890! & $1234567890$ \\
      \verb!.123456789! & $.123456789$ \\
      \verb!123.456789! & $123.456789$ \\
      \verb!123456.789! & $123456.789$ \\
      \verb!123456789.! & $123456789.$ \\
      \verb!,123456789! & $,123456789$ \\
      \verb!123,456789! & $123,456789$ \\
      \verb!123456,789! & $123456,789$ \\
      \verb!123456789,! & $123456789,$ \\
      \hline\hline
      \verb!1234567890! & $1234567890$ \\
      \verb!.123.456.789! & $.123.456.789$ \\
      \verb!1.234.567.89! & $1.234.567.89$ \\
      \verb!12.345.678.9! & $12.345.678.9$ \\
      \verb!123.456.789.! & $123.456.789.$ \\
      \verb!,123,456,789! & $,123,456,789$ \\
      \verb!1,234,567,89! & $1,234,567,89$ \\
      \verb!12,345,678,9! & $12,345,678,9$ \\
      \verb!123,456,789,! & $123,456,789,$ \\
      \hline\hline
      \verb!1234567890! & $1234567890$ \\
      \verb!1.23.456.789! & $1.23.456.789$ \\
      \verb!.1234.56789! & $.1234.56789$ \\
      \verb!1,23,456,789! & $1,23,456,789$ \\
      \verb!,1234,56789! & $,1234,56789$ \\
      \hline\hline
    \end{tabular}
  \end{minipage}%
  \begin{minipage}{0.5\textwidth}
    \centering
    \begin{tabular}{r@{\hspace{1em}}r@{\hspace{1em}}r}
      \hline\hline
      Input & Output \\
      \hline\hline
      \verb!1.23.456.789! & $1.23.456.789$ \\
      \verb!.1234.56789! & $.1234.56789$ \\
      \verb!1,23,456,789! & $1,23,456,789$ \\
      \verb!,1234,56789! & $,1234,56789$ \\
      \hline\hline
      \verb!1234567890! & $1234567890$ \\
      \verb!1,234,567.89! & $1,234,567.89$ \\
      \verb!12,345,678.9! & $12,345,678.9$ \\
      \verb!123,456,789.! & $123,456,789.$ \\
      \verb!1.234.567,89! & $1.234.567,89$ \\
      \verb!12.345.678,9! & $12.345.678,9$ \\
      \verb!123.456.789,! & $123.456.789,$ \\
      \hline\hline
      \verb!+123456789! & $+1234567890$ \\
      \verb!-123456789! & $-1234567890$ \\
      \verb!+-123456789! & $+-1234567890$ \\
      \verb!-+123456789! & $-+1234567890$ \\
      \verb!+ -123456789! & $+ -1234567890$ \\
      \hline\hline
      \verb!1e123456789! & $1e123456789$ \\
      \verb!1e+123456789! & $1e+123456789$ \\
      \verb!1e-123456789! & $1e-123456789$ \\
      \verb!1e.123456789! & $1e.123456789$ \\
      \verb!1e,123456789! & $1e,123456789$ \\
      \verb!1e123e123! & $1e123e123$ \\
      \verb!1ee123456! & $1ee123456$ \\
      \hline\hline
    \end{tabular}
  \end{minipage}
\end{document}