Thank you for your valuable contributions. I used double precision and I got exact result:
1.00000000000000000
1.20000000000000000
.
.
.
3.00000000000000000
Thanks again
I use Lahey Fortran 95 version 5.6 in my programming. Unfortunately, I do not know why I get Inaccurate result when I run my program. For example, after running the following code:
PROGRAM TEST
IMPLICIT NONE
REAL:: A
DO A=1.0,3.0,0.2
WRITE (*,*) A
END DO
END PROGRAM TEST
I get the following...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.