NumberSigns
Usage
• NumberSigns是NumberForm及其相关函数的可选项,用来给出用作正负数标记的字符串.
Notes
• NumberSigns -> "sneg", "spos" 指定 "sneg" 应被用作负数的标记, 而 "spos" 用作正数的标记. • 缺省设置是 NumberSigns -> {"-", ""}. • 在 AccountingForm中, 该缺省值是 NumberSigns -> {{"(", ")"}, ""}.
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=
|
|