Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Input and Output / Number Formatting  /
DigitBlock

  • DigitBlock is an option for NumberForm and related functions which specifies the maximum length of blocks of digits between breaks.
  • The default setting is DigitBlock -> Infinity, which specifies that no breaks should be inserted.
  • DigitBlock -> n inserts a break every n digits.
  • DigitBlock -> nleft , nright inserts a break every nleft digits to the left of the decimal point, and every nright digits to the right of the decimal point.
  • The setting for NumberSeparator determines what string should be used at each break.
  • See the Mathematica book: Section 2.8.7.

    Further Examples

    This puts breaks every 3 digits.

    In[1]:=

    Out[1]//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.