Previous Topic: Determine Input and Output Requirements for External Action BlocksNext Topic: Creating 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 data structure for an attribute that is implemented with decimal precision is a DPrec array whose size is the length of the attribute plus three (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 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/or leading and trailing zeros.

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