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)
Scope (5)
Use DigitBlock with PaddedForm:
Use commas as separators on the left and no separators on the right:
Use different block sizes and separators on the left and right:
Text
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.
APA
Wolfram Language. (1988). DigitBlock. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DigitBlock.html