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 / islam
Ans is : 10.2115 is stored as .10211500000000000E 02 in
ecobol.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What rules are to be followed while using the corresponding options?
How do you differentiate between cobol and cobol-ii?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Write the code implementing the perform … varying.
What is the difference between next sentence and continue in cobol programing language?
how to refer the data field?
What is rmode(24)
What is the difference between comp and comp-3 usage?
How arrays can be defined in COBOL?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What are the rules of the move verb?
What is a SSRANGE and NOSSRANGE?
what are decleratives in cobol?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic