Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
File Format Reference Pages locale(4)
debit_sign
Specifies the string used for the debit symbol (DB) to indicate a negative-formatted
monetary quantity.
credit_sign
Specifies the string used for the credit symbol (CR) to indicate a nonnegative-
formatted monetary quantity.
left_parenthesis
Specifies the character, equivalent to a ( (left parenthesis), used by the p_sign_posn
and n_sign_posn statements to enclose a monetary quantity and currency symbol.
right_parenthesis
Specifies the character, equivalent to a ) (right parenthesis), used by the p_sign_posn
and n_sign_posn statements to enclose a monetary quantity and currency symbol.
A unique customized monetary format can be produced by changing the value of a single state-
ment. For example, the following table shows the results of using all combinations of defined
values for the p_cs_precedes, p_sep_by_space, and p_sign_posn statements:
_______________________________________________________________
p_cs_precedes p_sign_posn p_sep_by_space
012
_______________________________________________________________
10($1.25) ($ 1.25) ($1.25)
1 + $1.25 +$ 1.25 +$1.25
2 $1.25 + $ 1.25+ $1.25+
3 + $1.25 +$ 1.25 +$1.25
4 $ +1.25 $+ 1.25 $+1.25
00(1.25 $) (1.25 $) (1.25$)
1 +1.25 $ +1.25 $ +1.25$
2 1.25$ + 1.25 $+ 1.25$+
3 1.25+ $ 1.25 +$ 1.25+$
4 1.25$ + 1.25 $+ 1.25$+
_______________________________________________________________
The following is an example of a possible LC_MONETARY category listed in a locale
definition source file:
LC_MONETARY
#
int_curr_symbol "<U><S><D>"
currency_symbol "<dollar-sign>"
mon_decimal_point "<period>"
mon_thousands_sep "<comma>"
mon_grouping <3>;<0>
positive_sign "<plus-sign>"
negative_sign "<hyphen>"
int_frac_digits <2>
frac_digits <2>
p_cs_precedes <1>
p_sep_by_space <2>
n_cs_precedes <1>
n_sep_by_space <2>
p_sign_posn <3>
n_sign_posn <3>
debit_sign "<D><B>"
credit_sign "<C><R>"
527188-004 Hewlett-Packard Company 11−21