Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Input and Output / Number Formatting  /
SignPadding

  • SignPadding is an option for NumberForm and related functions which specifies whether padding should be inserted after signs.
  • SignPadding -> True specifies that any padding that is needed should be inserted between the sign and the digits in a number.
  • SignPadding -> False specifies that the padding should be inserted before the sign.
  • See the Mathematica book: Section 2.8.7.
  • See also: NumberPadding.

    Further Examples

    The next two commands print each number with room for a total of 7 digits, and with 4 digits to the right of the decimal point.

    In[1]:=

    Out[1]//PaddedForm=

    Setting the option SignPadding -> True inserts leading spaces after the minus sign.

    In[2]:=

    Out[2]//PaddedForm=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.