COMP vs COMP‑3 arithmetic surprises

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Aakash Kochar
New Member
Posts: 9
Joined: Mon Aug 04, 2014 2:31 pm

COMP vs COMP‑3 arithmetic surprises

Post by Aakash Kochar »

I've been working on something similar and ran into a few doubts. Seeing different rounding/precision between COMP and COMP‑3. How do you choose types to avoid bugs? Thanks in advance for sharing your thoughts.

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”