此为 Mathematica 4 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

NumberSeparator

Usage

NumberSeparatorNumberForm 及其相关函数的可选项,用来给出数字之间的空格位置要插入的字符串.


Notes

NumberSeparator -> "s"指定字符串 s 应被插入由DigitBlock指定的数位之间每个空格位置.
NumberSeparator ->  "sleft", "sright" 指明将在小数点左右两边使用不同的字符串.
• 缺省设置为NumberSeparator -> ",".
• 参见Mathematica 全书: 2.8.7节.
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=