Mathematica > Notebooks and Documents > Mathematical Typesetting > Math Typesetting Options & Tweaking > DigitBlock >

DigitBlock

DigitBlock
is an option for NumberForm and related functions that 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 inserts a break every nleft digits to the left of the decimal point, and every nright digits to the right of the decimal point. »
Separate integer digits in blocks of 3:
Separate real digits in blocks of 2:
Use three-digit blocks on the left of the decimal and two-digit blocks on the right:
Separate integer digits in blocks of 3:
In[1]:=
Click for copyable input
Out[1]//NumberForm=
 
Separate real digits in blocks of 2:
In[1]:=
Click for copyable input
Out[1]//NumberForm=
 
Use three-digit blocks on the left of the decimal and two-digit blocks on the right:
In[1]:=
Click for copyable input
Out[1]//NumberForm=
Specify spaces as separators:
Use commas as separators on the left and no separators on the right:
Use different block sizes and separators on the left and right:
A number with three-digit blocks:
Reverse the roles of periods and commas:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF