Mathematica 9 is now available

NumberSigns

Usage

NumberSignsNumberForm及其相关函数的可选项,用来给出用作正负数标记的字符串.


Notes

NumberSigns ->  "sneg", "spos" 指定 "sneg" 应被用作负数的标记, 而"spos" 用作正数的标记.
• 缺省设置是 NumberSigns -> {"-", ""}.
NumberSigns ->   "snleft", "snright" ,  "spleft", "spright"  指定同时放在数的左右两边来指明它们的符号标记的字符串.
• 在 AccountingForm中, 该缺省值是 NumberSigns -> {{"(", ")"}, ""}.
• 参见Mathematica 全书: 2.8.7节.
• 同时参见: 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=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.