problem wirh real*8
Jim Wilson
wilson@specifixinc.com
Fri May 21 02:28:00 GMT 2004
antonio fazzolari wrote:
> x=0.123456789
> y=0.123456788
You have to tell the Fortran compiler that these are real*8 constants.
Otherwise, they are parsed as real constants, truncated to 32-bit
floats, and then extended to 64-bit doubles when stored into x and y.
One way to fix this is to change the two lines to
x=0.123456789d0
y=0.123456788d0
I am not a Fortran expert. There may be other or better ways to fix tihs.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc-bugs
mailing list