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


Please Help Members By Posting Answers For Below Questions

How can you get the ksds file records into your cobol program?

635


What is static and dynamic call in cobol?

586


How to print 10 to 1 if the input have only 10 digit number?

802


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.

5049


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1515






How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

664


In COBOL, what is the different between index and subscript?

750


What are the different types of condition in cobol and write their forms.

649


How to remove 2 duplicate records and copy only one using job control language?

729


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

694


Whats the difference between search & search ALL?

5236


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

663


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1895


What is a report item?

730


What rules are followed by the search verb.

629