Target | Conversion |
c | The value of the packed number is prepared as a numerical value and transferred to the target field, flush left. The character "-" is set at the last position for a negative value, and a blank is set for a positive value. If the target field is longer than the sequence of digits, including the plus/minus sign, the field is filled with blanks to the left. If it is too short, the number representation is moved to the right - in the case of positive values. If the target field is still too short (and in the case of negative values), the field is cut off to the left and the character "*" is set to the first position of the target field. |
d | The content of the source field is converted first into the data type i (see below) and then into the type d (see conversion table for soure field type i, b, or s). |
f | The value of the packed number is converted to the internal representation of a floating point number. |
i, b, s | The value of the packed number is arithmetically rounded to a full integer. If this number is outside of the value area for data type i, b, or s, it is converted into the internal representation of an integer. Otherwise, an exception that can be handled will be triggered. |
n | The value of the packed number is arithmetically rounded to an integer number. The absolute value of this number is transferred as a digit sequence, flush right, into the target field. If the target field is longer than the digit sequence, the field is filled to the left with zeroes. If it is too short, it is cut off at the left. |
p | The value of the packed number is arithmetically rounded to the number of decimal places of the target field. If this number is within the value area for the data type of the target field, it is converted to the internal representation of a packed number. Otherwise, an exception that can be handled will be triggered. |
string | The value of the packed number is prepared in arithmetic notation and transferred without gaps to the target field. The character "-" is set at the last position for a negative value, and a blank is set for a positive value. The resulting length of the target field is determined through the number of digits, in addition to the positions for the plus/minus sign and the decimal separator. . |
t | The content of the source field is converted first into the data type i (see above) and then into the type t (see conversion table for source field type i, b, or s). |
x | The content of the source field is converted first into the data type i (see above) and then into the type x (see conversion table for source field type i, b, or s). |
xstring | The content of the source field is converted first into the data type i (see above) and then converted into the type xstring (see conversion table for source field type i, b, or s). |