Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)

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 denition source le denes 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 dened as string or integer values.
String values are bounded by ""(double quotes). All values are separated from the keyword
they dene by one or more spaces. Two adjacent ""(double quotes) indicate an undened
string value. A -1 (negative one) indicates an undened integer value. The following keywords
are recognized in the LC_NUMERIC category:
copy Species the name of an existing locale to be used as the denition of this category. If
you include a copy statement, no other keyword shall be specied.
decimal_point
Species the decimal delimiter string used to format nonmonetary numeric quantities.
thousands_sep
Species the string separator used for grouping digits to the left of the decimal delim-
iter in formatted nonmonetary numeric quantities.
grouping
Denes 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 species the number of digits in a group. The initial integer denes the
size of the group immediately to the left of the decimal delimiter. The following
integers dene succeeding groups to the left of the previous group. Grouping is per-
formed for each integer specied 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 123456789
3;0 123456789
3;2 123456789
3;2;0 123456789
1122 Hewlett-Packard Company 527188-004