DOCUMENTATION CENTER SEARCH
Mathematica
>
Display of Numbers
>
Built-in
Mathematica
Symbol
Output Formats for Numbers
Tables and Matrices
Tutorials »
|
TableForm
AccountingForm
NumberForm
ScientificForm
See Also »
|
Display of Numbers
Mathematical Typesetting
Number Digits
More About »
PaddedForm
PaddedForm
[
expr
,
n
]
prints with all numbers in
expr
padded to leave room for a total of
n
digits.
PaddedForm
[
expr
, {
n
,
f
}]
prints with approximate real numbers having exactly
f
digits to the right of the decimal point.
MORE INFORMATION
By default,
PaddedForm
pads with spaces on the left to leave room for
n
digits.
PaddedForm
pads with zeros on the right in approximate real numbers.
The length
n
specified in
PaddedForm
counts only digits, and not signs, breaks between digits, and so on.
PaddedForm
takes the same options as
NumberForm
, but with some defaults different.
You can use
PaddedForm
to align columns of numbers.
PaddedForm
acts as a "wrapper", which affects printing, but not evaluation.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Display the first 10 digits of a numeric approximation to
:
In[1]:=
Out[1]//PaddedForm=
Display a number with 3 precise digits and 4 digits to the right of the decimal:
In[1]:=
Out[1]//PaddedForm=
SEE ALSO
TableForm
AccountingForm
NumberForm
ScientificForm
TUTORIALS
Output Formats for Numbers
Tables and Matrices
MORE ABOUT
Display of Numbers
Mathematical Typesetting
Number Digits
New in 2
© 2008 Wolfram Research, Inc.