[Bug libfortran/48047] Incorrect output rounding of double precision numbers
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 9 18:01:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48047
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #1 from kargl at gcc dot gnu.org 2011-03-09 18:01:42 UTC ---
gfortran does not claim conformance to IEEE 754, and
gfortran currently does not include even a crude
implementation of the IEEE 754 intrinsic modules.
gfortran doesn't even guarantee 36 decimal digits in
its REAL(16) type
program z
print '(I0,1X,I0)', digits(1.e0_8), digits(1.e0_16)
print '(I0,1X,I0)', precision(1.e0_8), precision(1.e0_16)
end program z
troutmask:sgk[213] gfc4x -o z d.f90 && ./z
53 113
15 33
It is unclear what you want to happen here.
More information about the Gcc-bugs
mailing list