This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/48602] Invalid F conversion of G descriptor for values close to powers of 10


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]