|Date:||April 18, 2006 / year-entry #137|
|Summary:||If you look at the NUMBERFMT structure, the way groups are expressed by the Grouping member do not match the value returned by LOCALE_SGROUPING: LOCALE_SGROUPING Grouping Sample Culture 3;0 3 1,234,567 United States 3;2;0 32 12,34,567 India 3 30 1234,567 (none I know of) LOCALE_SGROUPING expresses grouping as a series of semicolon-separated numbers, each expressing...|
If you look at the
In other words, the two systems are basically the same, with the
It's kind of strange that the two systems differ, considering that they both came from the same NLS team! It's probably a case of parallel evolution, wherein the locale-string folks and the number-formatting folks came up with their respective systems independently.
Writing code to implement this conversion from
Fortunately, in real life you rarely have need to perform this conversion, for you can just pass the desired locale as the first parameter to the
<-- Back to Old New Thing Archive Index