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:

Introduced in 1988
 (1.0)
 |
Updated in 2014
 (10.0)