ILE COBOL Programmer's Guide

Examples of Fixed-Point and Floating-Point Evaluations

For the examples shown in Fixed-Point versus Floating-Point Arithmetic, if you define the data items in the following manner:

      01  EMPLOYEE-TABLE.
          05  EMP-COUNT           PIC  9(4).
          05  EMPLOYEE-RECORD OCCURS 1 TO 1000 TIMES
                              DEPENDING ON EMP-COUNT.
              10 HOURS            PIC +9(5)E+99.
     .
     .
     .
     01  REPORT-MATRIX-COL       PIC  9(3).
     01  REPORT-MATRIX-MIN       PIC  9(3).
     01  REPORT-MATRIX-MAX       PIC  9(3).
     01  REPORT-MATRIX-TOT       PIC  9(3).
     01  CURRENT-DAY             PIC  9(7).
     01  NUMBER-OF-DAYS          PIC  9(3).


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]