SignPadding

SignPadding

is an option for NumberForm and related functions that specifies whether padding should be inserted after signs.

Details

  • SignPaddingTrue specifies that any padding that is needed should be inserted between the sign and the digits in a number.
  • SignPaddingFalse specifies that the padding should be inserted outside the sign.
  • Different sign characters can be present to the left and right of the number, as specified by the option NumberSigns. Padding strings on either side of the number are given by NumberPadding{"sleft","sright"}. Whether those padding strings are placed inside the corresponding signs is given by SignPadding{lbool,rbool}.

Examples

open all close all

Basic Examples  (2)

The default pads before signs:

In[1]:=
Click for copyable input
Out[1]//NumberForm=

Pad between signs and numbers instead:

In[1]:=
Click for copyable input
Out[1]//NumberForm=

Scope  (2)

Introduced in 1991
(2.0)
|
Updated in 2019
(12.0)