This COBOL system provides IEEE floating-point support. This is fully compatible with the various languages supplied by Microsoft, including Microsoft Visual C++ V6.0.
Floating-point values must be in the range:
Note that although the above ranges are supported internally, this COBOL system supports only 2 digit exponents, and the range is effectively:
The accuracy of floating-point values is:
Passing floating-point (COMP-1 and COMP-2) items by value between COBOL and non-COBOL programs is not supported under UNIX. The following statements give undefined behavior if data1 is a floating-point item.
In a COBOL program calling a non-COBOL program:
CALL "program" USING BY VALUE data1. CALL "program" RETURNING data1 In a COBOL program called from a non-COBOL program: PROCEDURE DIVISION USING BY VALUE data1. ENTRY "entry" USING BY VALUE data1. EXIT PROGRAM RETURNING data1. GOBACK RETURNING data1.