The LC_MONETARY locale-file category
The LC_MONETARY locale-file category is the section within a GLS locale file that defines the locale-specific formats for strings that contain monetary data.
Monetary data is considered to be values that contain digits and that represent units of some currency. Therefore, only fixed-point numbers can be monetary data. All other types of numbers (such as integer and floating-point) are considered to be numeric data. Strings of monetary data are called money strings.
Tip: In the Informix® GLS User's
Guide,
the LC_MONETARY locale-file category is sometimes referred to as the
MONETARY locale category. This manual uses LC_MONETARY as the category
name for monetary data.
The LC_MONETARY category of each locale file contains subcategories
that define the different monetary formats for that locale. The following
table lists the monetary formats and their corresponding LC_MONETARY
subcategory.
Monetary format | LC_MONETARY subcategory |
---|---|
International currency symbol (in accordance with the ISO 4217:1987 standard) | int_curr_symbol |
National (local) currency symbol | currency_symbol |
Monetary decimal separator | mon_decimal_point |
Monetary thousands separator | mon_thousands_sep |
Monetary grouping information (number of monetary digits to group together before inserting a thousands separator) | mon_grouping |
Monetary positive sign | positive_sign |
Monetary negative sign | negative_sign |
Number of fractional digits (those digits to the right of the decimal separator) to use in the international monetary format | int_frac_digits |
Number of fractional digits (those digits to the right of the decimal separator) to use in the national (local) monetary format | frac_digits |
Whether the currency symbol precedes or follows the monetary value | p_cs_precedes, n_cs_precedes |
Whether to separate the currency symbol from the monetary value with a space | p_sep_by_space, n_sep_by_space |
Position of positive and negative signs in a monetary value | p_sign_posn, n_sign_posn |
Tip: The DBMONEY environment variable
can also specify formats for locale-specific formats for money strings.
For definitions of any of these monetary formats (such as currency symbol, decimal separator, or thousands separator) and more information about the DBMONEY environment variable, see the Informix® GLS User's Guide.