Considerations for Floating-Point Data Items
You should consider the following when using floating-point data items with the ACCEPT statement.
It is possible that when an external floating-point literal is ACCEPTed, slight inaccuracies can result. This is especially true if the floating-point data item is moved after it is ACCEPTed. The floating-point data type is an approximation, and when an external floating-point literal is moved, it is first converted to a true floating-point value (IEEE), which can also affect its accuracy.
For example, consider the following ACCEPT:
77 external-float-1 PIC +9(3).9(13)E+9(3).
ACCEPT external-float-1 FROM CRT.
DISPLAY "EXTERNAL-FLOAT-1=" external-float-1.
The displayed result
after +123455779012.3453E+297 is ACCEPTed is:
EXTERNAL-FLOAT-1=+123.4557790123452E+306