This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/48047] Incorrect output rounding of double precision numbers
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 9 Mar 2011 18:01:43 +0000
- Subject: [Bug libfortran/48047] Incorrect output rounding of double precision numbers
- Auto-submitted: auto-generated
- References: <bug-48047-4@http.gcc.gnu.org/bugzilla/>
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.