Previous Topic: Analyze External Action BlocksNext Topic: Create External Action Logic


Decimal Precision Attributes

Import and Export views in External Action Blocks may contain any of the supported attributes by CA Gen. This section is intended to give you a better understanding for handling views that contain attributes of type decimal precision.

The C language data structure for an attribute that is implemented with decimal precision 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.

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 characters depending on the definition of the attribute it implements:

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

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