

Arithmetic and Assignment Commands › General Considerations › Numeric Fields
Numeric Fields
A value moved between numeric source and target fields is decimal-point aligned in the target field. Differences between the source-field value and the target field are handled as follows:
- Differences to the left of the decimal point:
- If the portion of the source-field value to the left of the decimal point is shorter than the corresponding portion of the target field, the leftmost positions in the target field are filled with zeros.
- If the portion of the source-field value to the left of the decimal point is longer than the corresponding portion of the target field, the operation cannot be executed and CA ADS terminates the application thread abnormally.
- Differences to the right of the decimal point:
- If the portion of the source-field value to the right of the decimal point is shorter than the corresponding portion of the target field, the rightmost positions in the target field are filled with zeros.
- If the portion of the source-field value to the right of the decimal point is longer than the corresponding portion of the target field, the value is either rounded to or truncated at the rightmost decimal position in the target field, depending on whether the ROUNDED or TRUNCATED specification applies.
Copyright © 2014 CA.
All rights reserved.
 
|
|