Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

numprint – Print numbers with separators and exponent if necessary

The pack­age numprint prints num­bers with a sep­a­ra­tor ev­ery three dig­its and con­verts num­bers given as 12345.6e789 to 12\,345,6\cdot 10^{789}. Num­bers are printed in the cur­rent mode (text or math) in or­der to use the cor­rect font.

Many things, in­clud­ing the dec­i­mal sign, the thou­sand sep­a­ra­tor, as well as the prod­uct sign can be changed by the user, e.g., to reach 12,345.6\times 10^{789}.

If an op­tional ar­gu­ment is given it is printed up­right as unit. Num­bers can be rounded to a given num­ber of dig­its. The pack­age sup­ports an au­to­matic, lan­guage-de­pen­dent change of the num­ber for­mat.

Tab­u­lar align­ment us­ing the tab­u­lar(*), ar­ray, tab­u­larx, and longtable en­vi­ron­ments (sim­i­lar to the dcol­umn and rc­col pack­ages) is sup­ported us­ing all fea­tures of numprint. Ad­di­tional text can be added be­fore and af­ter the for­mat­ted num­ber.

Sources/macros/latex/contrib/numprint
Doc­u­men­ta­tion
Ver­sion1.39
Li­censeThe LaTeX Project Public Li­cense
Copy­right2000-2005, 2007, 2008, 2012 Har­ald Harders
Main­tainerHar­ald Harders
Con­tained inTeXlive as numprint
MikTeX as numprint
Topics for­mat­ting num­bers, etc

Down­load the con­tents of this pack­age in one zip archive (1.2M).

Guest Book Sitemap Contact