This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37472] bad output on default-format write of double in common block with -m64 flag i
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Sep 2008 14:27:49 -0000
- Subject: [Bug fortran/37472] bad output on default-format write of double in common block with -m64 flag i
- References: <bug-37472-14147@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from burnus at gcc dot gnu dot org 2008-09-11 14:27 -------
Jerry, do you know why gfortran 4.3/4.4 prints one trailing zero more for 1000
than for other numbers? 4.2 used the same number of trailing digits.
1000.00000
1001.0000
for
print *, 1000.0
print *, 1001.0
end
If one uses 0.2 more, one gets the expected
1000.2000
1001.2000
And for 100.0 it is off by one again.
(Maybe you have also an idea about the problem in comment 0.)
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37472