WORKING-STORAGE SECTION.
01 VAR1 COMP-2 VALUE 0.
PROCEDURE DIVISION.
MOVE 10.2115 TO VAR1.
DISPLAY 'VAR1 =' VAR1.
GOBACK.
10.2115 is stored as .10211499999999996E 02 in OS VS Cobol
10.2115 is stored as .10211500000000000E 02 in ecobol.
Any reason why?
Answer Posted / jennifer victor
comp-2 is pre defined that it stores all the data values in hexadecimal format, using 8 bytes, hence its displayed in hexa format.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Define static linking and dynamic linking.
What guidelines should be followed to write a structured cobol prgm?
) how do u code after getting data?
Mention the guidelines to write a structured cobol program?
Name some of the examples of COBOl 11?
In which area will you utilize 88 level items in cobol?
State the various causes of s0c1, s0c5 and s0c7.
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is rmode(24)
What is amode(31)
What is comp-1 and comp-2?
What is the compute verb? How is it used?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
what are decleratives in cobol?
Difference between cobol and cobol-ii?