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

NumberSigns

NumberSigns
is an option for NumberForm and related functions which gives strings to use as signs for negative and positive numbers.
  • NumberSigns->{"sneg", "spos"} specifies that "sneg" should be given as the sign for negative numbers, and "spos" for positive numbers.
  • The default setting is NumberSigns->{"-", ""}.  »
  • NumberSigns->{{"snleft", "snright"}, {"spleft", "spright"}} specifies strings to put both on the left and right of numbers to specify their signs.  »
Positive and negative numbers with default number signs:
In[1]:=
Click for copyable input
Out[1]//NumberForm=
 
Add explicit positive signs:
In[1]:=
Click for copyable input
Out[1]//NumberForm=
 
Parentheses are used for negative values in AccountingForm:
In[1]:=
Click for copyable input
Out[1]//AccountingForm=
New in 2