Decimal text representation
The supports
a decimal value in text representation as a quoted string that contains
the characters that the following table shows.
| Contents of fixed-point string | Character |
|---|---|
| Digits | 0–9 |
| Thousands separator: symbol between every three digits | , (comma) |
| Decimal separator: symbol between the integer and fraction portions of the number | . (period) |
A decimal value in its text representation is often called
a decimal string. For example, the following decimal string contains
the value for 1,345.77:
"1,345.77"In a decimal string, the thousands separator is optional.
A locale defines the end-user format for numeric values. The end-user format is the format in which data appears in a client application when the data is a literal string or character variable. The preceding decimal string is the end-user format for the default locale, US English. A nondefault locale can define an end-user format that is particular to a country or culture outside the US. For more information, see the HCL® Informix® GLS User's Guide.