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
How can you get the ksds file records into your cobol program?
What is static and dynamic call in cobol?
How to print 10 to 1 if the input have only 10 digit number?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
In COBOL, what is the different between index and subscript?
What are the different types of condition in cobol and write their forms.
How to remove 2 duplicate records and copy only one using job control language?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Whats the difference between search & search ALL?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is a report item?
What rules are followed by the search verb.