cobol2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
COMP-5 Details (↑ Choosing Run-time Behavior)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The possible values of integer are:
 
      1  Behavior as in earlier versions of this compiler. The sign
         is dropped.
 
      2  The sign is not dropped. Negative numbers are stored in two's
         complement form, so that, except for their byte-order being
         machine dependent, unsigned COMP-5 items behave like COMP-X.
         This results in highly efficient arithmetic on unsigned
         COMP-5 items.
                                    -♦-