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

What rules are to be followed while using the corresponding options?

632


How do you differentiate between cobol and cobol-ii?

651


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1767


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1646


Write the code implementing the perform … varying.

639






What is the difference between next sentence and continue in cobol programing language?

707


how to refer the data field?

1802


What is rmode(24)

676


What is the difference between comp and comp-3 usage?

674


How arrays can be defined in COBOL?

661


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1951


What are the rules of the move verb?

701


What is a SSRANGE and NOSSRANGE?

818


what are decleratives in cobol?

1827


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

2104