COMP vs COMP‑3 arithmetic surprises
-
Aakash Kochar
- New Member
- Posts: 9
- Joined: Mon Aug 04, 2014 2:31 pm
COMP vs COMP‑3 arithmetic surprises
Seeing different rounding/precision between COMP and COMP‑3. How do you choose types to avoid bugs? Thanks in advance for sharing your thoughts.
- enrico-sorichetti
- Global Moderator

- Posts: 855
- Joined: Wed Sep 11, 2013 3:57 pm
Re: COMP vs COMP‑3 arithmetic surprises
read the manual and/or search for "differences between COBOL COMP COMP3"
hint ...
COMP binary numbers
COMP3 packed decimal numbers
topic moved where it belongs ... the COBOL and friends section
hint ...
COMP binary numbers
COMP3 packed decimal numbers
topic moved where it belongs ... the COBOL and friends section
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
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