Why is the thousands separator called the "grouping separator"?

In many programming languages, the thousands separator (for example, "," in the US line "1000") is called the "grouping separator". Why is this?

Are there real locales that share written integers on some other border? Do people write numbers somewhere, for example, 86.75.30.9 or 8675.309? If so, what are these locales?

This problem arose for me today in Objective-C, when I could not remember the name of the constant to find the string for this separator. I printed "NSThou" and nothing was autocomplete. I had to go to the docs to remind you like this:

NSLocale *loc = [NSLocale currentLocale]; NSString *sep = [loc objectForKey:NSLocaleGroupingSeparator]; 

However, this does not apply to Objective-C; I recall from my old days of Java that this is called the same. (The Python people, OTOH, seem to call it the thousands separator . ")

+4
source share
2 answers

Few countries, such as India and its neighbor, use a thousand separators for readability, and once the last three are grouped into three and rest in half: for example

100

1000

10,000

1.00.000

10,00,000

1,00,00,000

If several countries follow grouping 3 as

100,000

100,000,000


Adding to this, you can confuse a few biased uses. and, to represent the decimal and thousandth separator, here you can’t say what this value means as 10,000, 10,000.00 and 10,000.00, so you need to set the localization for the number format whenever you ask the user to enter a number

+2
source

Wikipedia says:

For example, in different countries (for example, China, India and Japan), there are traditional grouping agreements for 2 or 4 digits.

+5
source

All Articles