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 is amode(24), amode(31), rmode(24) and rmode(any)?
What is the compute verb? How is it used?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is inspect in cobol ?
What is the difference between structured cobol programming and object alternativelyiented cobol?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How to use the same COBOL program in Batch and CICS on lines? explain with an example
what is the use of outrecord?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What are the cobol coding sheets?
How many sections are there in data division in COBOL?
Write a cobol program making use of the redefine clause.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the difference between Call and a Link?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue