Addition and subtraction


The addition operator (+) is used to compute the sum of the two operands.

The subtraction operator (–) is used to compute the difference between the two operands.

The product will ensure that the implied decimal points of the two operands are aligned. If both operands do not have the same precision, the operand with the smaller precision will have its precision increased to match the other operand. If operand1 is smaller in size than operand2, the size of operand1 is increased to match that of operand2.

The data-type, size and precision of the value that results from the operation will match that of operand1 (after all necessary data conversions have been performed).

For example, the expression that follows causes two data fields to be added. The second operand (type F) will be converted to packed, and the decimal is aligned with the first operand.

     SEGMENT_RECORD_PREFIX=(SEGMENT_NAME,16:4.1P + 20:2F)

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

Fast Path/EP products reference information 4.0