Mathematica >

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
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team