 |
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
->
"
sleft
",
"
sright
"
specifies strings to use for padding on the left and right. In NumberForm, the default setting is NumberPadding
->
{"",
""}. In PaddedForm, the default setting is NumberPadding
->
{"
",
"0"}. The strings specified as padding are inserted in place of digits. See the Mathematica book: Section 2.8.7. See also: SignPadding.
Further Examples
With the default setting for the option NumberPadding, both NumberForm and PaddedForm insert trailing zeros when they pad a number on the right. You can use spaces for padding on both the left and the right by setting NumberPadding
->
{"
",
"
"}.
In[1]:= 
Out[1]//PaddedForm= 
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | | | |
 | |
|