NumberSeparator

NumberSeparator

is an option for NumberForm and related functions that gives the string to insert at breaks between digits.

Details

  • 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->{","," "}.
  • NumberSeparator can also be used to specify the strings to assume for breaks between digits with Interpreter["Number",].

Examples

open allclose all

Basic Examples  (3)

The default separator is a comma (,):

Use spaces instead:

Interpret numbers with a custom separator:

Scope  (3)

Use NumberSeparator with PaddedForm:

EngineeringForm:

ScientificForm:

AccountingForm:

Specify different separators to the left and right of the number point:

The default number separators and number point:

Switch the role of periods and commas in the representation:

Wolfram Research (1988), NumberSeparator, Wolfram Language function, https://reference.wolfram.com/language/ref/NumberSeparator.html (updated 2014).

Text

Wolfram Research (1988), NumberSeparator, Wolfram Language function, https://reference.wolfram.com/language/ref/NumberSeparator.html (updated 2014).

CMS

Wolfram Language. 1988. "NumberSeparator." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/NumberSeparator.html.

APA

Wolfram Language. (1988). NumberSeparator. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NumberSeparator.html

BibTeX

@misc{reference.wolfram_2023_numberseparator, author="Wolfram Research", title="{NumberSeparator}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/NumberSeparator.html}", note=[Accessed: 18-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_numberseparator, organization={Wolfram Research}, title={NumberSeparator}, year={2014}, url={https://reference.wolfram.com/language/ref/NumberSeparator.html}, note=[Accessed: 18-April-2024 ]}