Example fancynum output

J. J. Green

17th March 2000

This file contains some of examples of the use of the package. Table 1 shows some examples of the setting of a number (π) for different printf format strings. The table was generated entirely automatically by the C program tables.c include in the distribution. The group symbol used is the thinspace.

Format  Output  Typeset

               %f        3.141593  3·141 593
               %e      3.141593e+00  3·141 593×10^{0}
               %g        3.14159  3·141 59
              %.9f     3.141592654  3·141 592 654
              %.9e   3.141592654e+00 3·141 592 654×10^{0}
              %.9g      3.14159265  3·141 592 65

Table 1: Double conversions for π

The figures in Table 2 are also set by the package. This table shows some values of the factorial squared, and is included to give an example of a real table with integers of widely varying magnitude. The group symbol used here is the comma.

\begin{matrix}n & (n!)^{2} \\ 1 & 1 \\ 2 & 4 \\ 3 & 36 \\ 4 & 576 \\ 5 & 14,400 \\ 6 & 518,400 \\ 7 & 25,401,600 \\ 8 & 1,625,702,400 \\ 9 & 131,681,894,400 \end{matrix}

Table 2: Some values of (n!)^{2}

An earlier version of the package had a bug which mis-set the examples 3.14e1 (3·14×10^{1}), 3.14e-1 (3·14×10^{−1}) and 3.14e000001 (3·14×10^{1}), but these problems are now fixed.