This category defines the rules and symbols used to format non-monetary
numeric information. The operands are strings. The following keywords
are recognized:
- copy
- Specifies the name of an existing locale to be used as the source
for the definition of this category. If this keyword is specified,
no other keyword should be present in this category. If the locale
is not found, an error is reported and no locale output is created.
The copy keyword cannot specify a locale that also specifies
the copy keyword for the same category.
- decimal_point
- Specifies a string used as the decimal delimiter in numeric,
non-monetary formatted quantities. This keyword cannot be omitted
and cannot be set to the empty string.
- thousands_sep
- Specifies a string containing the symbol that is used as a separator
for groups of digits to the left of the decimal delimiter in numeric,
non-monetary, formatted quantities.
- grouping
- Defines the size of each group of digits in formatted non-monetary
quantities. The operand is a sequence of integers separated by semicolons.
Also, for compatibility, it may be a string of integers separated
by semicolons. Each integer specifies the number of digits in each
group, with the initial integer defining the size of the group immediately
preceding the decimal delimiter, and the following integers defining
the preceding groups. If the last integer is not -1, then the
size of the previous group (if any) is used repeatedly for the rest
of the digits. If the last integer is -1, then no further grouping
is performed. An empty string is interpreted as -1.
Figure 1 is an example of how to specify the LC_NUMERIC category.
Figure 1. Example
LC_NUMERIC definitionescape_char /
comment_char %
%%%%%%%%%%%%%
LC_NUMERIC
%%%%%%%%%%%%%
decimal_point "<comma>"
thousands_sep "<space>"
grouping 3
END LC_NUMERIC