This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Input and Output / Number Formatting /


FilledSmallSquare PaddedForm[expr, n] prints with all numbers in expr padded to leave room for a total of n digits.

FilledSmallSquare PaddedForm[expr, n, f] prints with approximate real numbers having exactly f digits to the right of the decimal point.

FilledSmallSquare By default, PaddedForm pads with spaces on the left to leave room for n digits.

FilledSmallSquare PaddedForm pads with zeros on the right in approximate real numbers.

FilledSmallSquare The length n specified in PaddedForm counts only digits, and not signs, breaks between digits, and so on.

FilledSmallSquare PaddedForm takes the same options as NumberForm, but with some defaults different.

FilledSmallSquare You can use PaddedForm to align columns of numbers.

FilledSmallSquare PaddedForm acts as a "wrapper", which affects printing, but not evaluation.

FilledSmallSquare See Section 2.9.7.

FilledSmallSquare See also: ColumnForm, TableForm.

FilledSmallSquare New in Version 2.

Further Examples