Mathematica 9 is now available
 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=



    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.