DigitBlock
✖
DigitBlock
is an option for NumberForm and related functions that specifies the maximum length of blocks of digits between breaks.
Details

- 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. »
- DigitBlock can also be used to specify what to assume for interpretation of numbers with Interpreter["Number",…].
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Separate integer digits in blocks of 3:

https://wolfram.com/xid/0enzk95ki-c414fm

Separate real digits in blocks of 2:

https://wolfram.com/xid/0enzk95ki-dac278

Use three‐digit blocks on the left of the decimal and two‐digit blocks on the right:

https://wolfram.com/xid/0enzk95ki-bbrjh1

Scope (5)Survey of the scope of standard use cases
Use DigitBlock with PaddedForm:

https://wolfram.com/xid/0enzk95ki-nybnce


https://wolfram.com/xid/0enzk95ki-ciugnb


https://wolfram.com/xid/0enzk95ki-l8ac2d


https://wolfram.com/xid/0enzk95ki-c1lgvr


https://wolfram.com/xid/0enzk95ki-k8vwg

Use commas as separators on the left and no separators on the right:

https://wolfram.com/xid/0enzk95ki-ex99qo

Use different block sizes and separators on the left and right:

https://wolfram.com/xid/0enzk95ki-cwa6sp

A number with three‐digit blocks:

https://wolfram.com/xid/0enzk95ki-fj8km4

Reverse the roles of periods and commas:

https://wolfram.com/xid/0enzk95ki-w7n57

Wolfram Research (1988), DigitBlock, Wolfram Language function, https://reference.wolfram.com/language/ref/DigitBlock.html (updated 2014).
Text
Wolfram Research (1988), DigitBlock, Wolfram Language function, https://reference.wolfram.com/language/ref/DigitBlock.html (updated 2014).
Wolfram Research (1988), DigitBlock, Wolfram Language function, https://reference.wolfram.com/language/ref/DigitBlock.html (updated 2014).
CMS
Wolfram Language. 1988. "DigitBlock." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/DigitBlock.html.
Wolfram Language. 1988. "DigitBlock." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/DigitBlock.html.
APA
Wolfram Language. (1988). DigitBlock. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DigitBlock.html
Wolfram Language. (1988). DigitBlock. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DigitBlock.html
BibTeX
@misc{reference.wolfram_2025_digitblock, author="Wolfram Research", title="{DigitBlock}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DigitBlock.html}", note=[Accessed: 08-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_digitblock, organization={Wolfram Research}, title={DigitBlock}, year={2014}, url={https://reference.wolfram.com/language/ref/DigitBlock.html}, note=[Accessed: 08-July-2025
]}