Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
locale(4) OSS Shell and Utilities Reference Manual
left_parenthesis "<left-parenthesis>"
right_parenthesis "<right-parenthesis>"
#
END LC_MONETARY
The LC_NUMERIC Category
The LC_NUMERIC category of a locale definition source file defines rules and symbols for for-
matting nonmonetary numeric information. This category begins with an LC_NUMERIC
category header and terminates with an END LC_NUMERIC category trailer.
All operands for the LC_NUMERIC category keywords are defined as string or integer values.
String values are bounded by ""(double quotes). All values are separated from the keyword
they define by one or more spaces. Two adjacent ""(double quotes) indicate an undefined
string value. A -1 (negative one) indicates an undefined integer value. The following keywords
are recognized in the LC_NUMERIC category:
copy Specifies the name of an existing locale to be used as the definition of this category. If
you include a copy statement, no other keyword shall be specified.
decimal_point
Specifies the decimal delimiter string used to format nonmonetary numeric quantities.
thousands_sep
Specifies the string separator used for grouping digits to the left of the decimal delim-
iter in formatted nonmonetary numeric quantities.
grouping
Defines the size of each group of digits in formatted monetary quantities. The operand
for the grouping keyword consists of a sequence of semicolon-separated integers.
Each integer specifies the number of digits in a group. The initial integer defines the
size of the group immediately to the left of the decimal delimiter. The following
integers define succeeding groups to the left of the previous group. Grouping is per-
formed for each integer specified for the grouping keyword, unless the last integer is 0
(zero), in which case the size of the last group is repeatedly used for remaining digits.
The following is an example of the interpretation of the grouping statement. Assuming the value
to be formatted is 123456789 and the operand for the thousands_sep keyword is ’ (single quote),
the following results occur:
grouping Value Formatted Value
3 123456’789
3;0 123’456’789
3;2 1234’56’789
3;2;0 12’34’56’789
11−22 Hewlett-Packard Company 527188-003