The LC_NUMERIC category source definition in locale source files specifies the rules and symbols used to format non-monetary numeric data in the locale that is compiled from that source by the LOCALDEF utility.
The following keywords make up this category definition, and have operands that are strings.
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 string representing a
sequence 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 digits. If the last integer is -1, then no further grouping
is performed. An empty string is interpreted as -1.
Example: LC_NUMERIC Locale Category Definition
![]()
Internationalization
Localization
and Locales
![]()
Locale Categories
Locale Source
Files