Previous Topic: Character ArraysNext Topic: Repeating Group Views


Decimal Precision Attributes

The data structure for this attribute is a DPrec array whose size is the length of the attribute plus 3 (for the sign, decimal point, and null terminator). A DPrec is a typedef of char. For example, an attribute that is defined as a number of 18 digits will be implemented as DPrec[21].

The number represented within the DPrec array may consist of the following depending upon the definition of the attribute it implements:

For the import view, all decimal precision attributes should adhere to the following rules:

For the export view, a decimal precision attribute may be its simplest form or may contain a plus sign and/or leading and trailing zeros.