This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
 Documentation / Mathematica / Built-in Functions / Input and Output / Number Formatting  /
NumberSeparator

  • NumberSeparator is an option for NumberForm and related functions which gives the string to insert at breaks between digits.
  • NumberSeparator -> " s " specifies that the string s should be inserted at every break between digits specified by DigitBlock.
  • NumberSeparator -> " sleft ", " sright " specifies different strings to be used on the left and right of the decimal point.
  • The default setting is NumberSeparator -> ",".
  • See the Mathematica book: Section 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=