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

NumberPadding

NumberPadding
is an option for NumberForm and related functions which gives strings to use as padding on the left- and right-hand sides of numbers.
  • NumberPadding specifies strings to use for padding on the left and right.
  • The strings specified as padding are inserted in place of digits.
Default format without padding:
Pad with a tab on the left:
Default format without padding:
In[1]:=
Click for copyable input
Out[1]//NumberForm=
 
Pad with a tab on the left:
In[1]:=
Click for copyable input
Out[1]//NumberForm=
PaddedForm pads with zeros on the right by default:
Pad with X's instead:
New in 2