 |
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. In AccountingForm, the default setting is NumberSigns
->
{{"(",
")"},
""}. See the Mathematica book: Section 2.8.7. See also: SignPadding.
Further Examples
This breaks digits into blocks of length 3.
In[1]:= 
Out[1]//NumberForm= 
You can specify any string to use as a separator between blocks of digits.
In[2]:= 
Out[2]//NumberForm= 
This gives an explicit plus sign for positive numbers, and uses | in place of a decimal point.
In[3]:= 
Out[3]//NumberForm= 
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | | | |
 | |
|