[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10
thenlich at users dot sourceforge.net
gcc-bugzilla@gcc.gnu.org
Sun Apr 17 13:26:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602
--- Comment #17 from Thomas Henlich <thenlich at users dot sourceforge.net> 2011-04-17 13:25:25 UTC ---
(In reply to comment #16)
> 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
I agree.
Let's open a new bug for this. This bug is about the correct choice of format,
not about rounding (this is somewhere else in the code).
More information about the Gcc-bugs
mailing list