%% $Id: numprinttest.tex,v 1.2 2001/03/12 17:22:55 harders Exp $
\documentclass[a4paper,fleqn,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[nosepfour]{numprint}
\usepackage{array}

\thousandsep{.}
\thousandthpartsep{\ensuremath{\cdot}}
\begin{document}
\sffamily
To be able to see the difference between text and math mode I switch
to a sans serif font. The math mode stays with serifs.

text mode:

\numprint{1234} abc

\numprint{1234.1234} abc

\numprint{1234.12345} abc

\numprint{12345.12345}

\numprint{1234567890}

\numprint[mm]{1234567890}

\numprint{1234567890,1234567890}, \numprint{1234567890.1234567890}

\numprint{+123456}, \numprint{+1234567}, \numprint{+12345678}

\numprint{-123456}, \numprint{-1234567}, \numprint{-12345678}

\numprint{12345678.12345678e1234.1234}

\numprint{12345678.12345678E+1234.1234}

\numprint{12345678.12345678E1234}

\numprint{E1234}

\bigskip
math mode:

$\numprint{1234.1234}$

$\numprint{12345.12345}$

$\numprint{1234567890}$

$\numprint{1234567890,1234567890}$, $\numprint{1234567890.1234567890}$

$\numprint{+123456}$, $\numprint{+1234567}$, $\numprint{+12345678}$

$\numprint{-123456}$, $\numprint{-1234567}$, $\numprint{-12345678}$

$\numprint{12345678.12345678e1234.1234}$

$\numprint{12345678.12345678E+1234.1234}$

$\numprint{12345678.12345678E1234}$

$\numprint{E1234}$

$\numprint{1.}$

$\numprint{.1}$

$\numprint{1.E5}$

{\noaddmissingzero
$\numprint{1.}$

$\numprint{.1}$

$\numprint{1.E5}$}

\bigskip
tabulars:

\begin{tabular}{|n{6}{5}|}
  \numprint{1.1e1}\\
  \numprint{12.12e12}\\
  \numprint{123.123e123}\\
  \numprint{1234.1234e1234}\\
  \numprint{12345.12345e1234.1}\\
  \numprint{123456.12345}
\end{tabular}

\begin{tabular}{|n{6}{5}|}
  \numprint{1.1}\\
  \numprint{12.12}\\
  \numprint{123.123}
\end{tabular}

\begin{tabular}{|N{6}{5}{4}|}
  \numprint{1.1e1}\\
  \numprint{12.12e12}\\
  \numprint{123.123e123}\\
  \numprint{1234.1234e1234}\\
  \numprint{12345.12345e1234.1}\\
  \numprint{12345.12345e12345.1}\\
  \numprint{123456.12345}
\end{tabular}

\begin{tabular}{@{|}n{4}{4}@{|}}
  \numprint{1.1}\\
  \numprint{12.12}\\
  \numprint{123.123}\\
  \numprint{1234.1234}
\end{tabular}

\fourdigitnosep
\begin{tabular}{|N{6}{5}{4}|}
  \numprint{1.1e1}\\
  \numprint{12.12e12}\\
  \numprint{123.123e123}\\
  \numprint{1234.1234e1234}\\
  \numprint{12345.12345e1234.1}\\
  \numprint{12345.12345e12345.1}\\
  \numprint{123456.12345}
\end{tabular}

\begin{tabular}{@{|}n{4}{4}@{|}}
  \numprint{1.1}\\
  \numprint{12.12}\\
  \numprint{123.123}\\
  \numprint{1234.1234}
\end{tabular}

\begin{tabular}{@{|}n{4}{5}@{|}}
  \numprint{1.1}\\
  \numprint{12.12}\\
  \numprint{123.123}\\
  \numprint{1234.1234}\\
  \numprint{1234.12345}
\end{tabular}


\numprint{1234} abc

\numprint{1234.1234} abc

\numprint{1234.12345} abc

\numprint{12345.1234} abc

\numprint{12345.12345}


\end{document}
