These are the standard members of
struct lconv; there may be
".", and the value of
""(the empty string).
groupingapplies to non-monetary quantities and
mon_groupingapplies to monetary quantities. Use either
mon_thousands_septo separate the digit groups. Each string is made up of decimal numbers separated by semicolons. Successive numbers (from left to right) give the sizes of successive groups (from right to left, starting at the decimal point). The last number in the string is used over and over for all the remaining groups. If the last integer is
-1, it means that there is no more grouping--or, put another way, any remaining digits form one large group without separators. For example, if
"4;3;2", the correct grouping for the number
123456787654321is `12', `34', `56', `78', `765', `4321'. This uses a group of 4 digits at the end, preceded by a group of 3 digits, preceded by groups of 2 digits (as many as needed). With a separator of `,', the number would be printed as `12,34,56,78,765,4321'. A value of
"3"indicates repeated groups of three digits, as normally used in the U.S. In the standard `C' locale, both
mon_groupinghave a value of
"". This value specifies no grouping at all.
CHAR_MAX, meaning "unspecified". The ISO standard doesn't say what to do when you find this the value; we recommend printing no fractional digits. (This locale also specifies the empty string for
mon_decimal_point, so printing any fractional digits would be confusing!)
Go to the first, previous, next, last section, table of contents.