This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10
- From: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 17 Apr 2011 12:40:10 +0000
- Subject: [Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10
- Auto-submitted: auto-generated
- References: <bug-48602-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602
--- Comment #16 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-04-17 12:39:25 UTC ---
I see another rounding issue with this:
integer, parameter :: RT=8
print *, 0.09_RT, " RD:"
print "(RD,G15.2)", 0.09_RT
print "(RD,E15.2)", 0.09_RT
print "(RD,D15.2)", 0.09_RT
print "(RD,F15.2)", 0.09_RT
end
Gives:
8.99999999999999967E-002 RD:
0.89E-01
0.90E-01
0.90D-01
0.08
I believe the E and D case should be 0.89E-01 and 0.89E-01