public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/48602] New: Invalid F conversion of G descriptor for values close to powers of 10
@ 2011-04-14  8:02 thenlich at users dot sourceforge.net
  2011-04-14 15:20 ` [Bug libfortran/48602] " jvdelisle at gcc dot gnu.org
                   ` (53 more replies)
  0 siblings, 54 replies; 56+ messages in thread
From: thenlich at users dot sourceforge.net @ 2011-04-14  8:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48602

           Summary: Invalid F conversion of G descriptor for values close
                    to powers of 10
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: thenlich@users.sourceforge.net


Created attachment 23976
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23976
Test case

Libfortran does not correctly implement the G conversion method from Fortran
2008 10.7.5.2.2(4) for the UP and DOWN I/O rounding modes.

The number of significant digits d is incorrect in some cases where the
magnitude of the internal value is close to a power of 10.

For instance

print "(RU,G15.2)", .991d0
prints 1.00 but the expected result is 1.0 because 1 - r * 10**-2 < .991 with r
= 1 because of UP rounding mode

print "(RD,G15,2)", .996d0
prints 0.9 but expected is 0.99 because .996 < 1 - r * 10**-2 with r = 0
because of DOWN rounding mode


^ permalink raw reply	[flat|nested] 56+ messages in thread

end of thread, other threads:[~2011-05-06  1:33 UTC | newest]

Thread overview: 56+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-14  8:02 [Bug libfortran/48602] New: Invalid F conversion of G descriptor for values close to powers of 10 thenlich at users dot sourceforge.net
2011-04-14 15:20 ` [Bug libfortran/48602] " jvdelisle at gcc dot gnu.org
2011-04-15 19:37 ` jvdelisle at gcc dot gnu.org
2011-04-15 20:01 ` thenlich at users dot sourceforge.net
2011-04-15 20:15 ` jvdelisle at gcc dot gnu.org
2011-04-15 20:42 ` thenlich at users dot sourceforge.net
2011-04-15 21:00 ` jvdelisle at gcc dot gnu.org
2011-04-16  4:30 ` jvdelisle at gcc dot gnu.org
2011-04-16  6:43 ` thenlich at users dot sourceforge.net
2011-04-16 14:38 ` jvdelisle at frontier dot com
2011-04-16 15:46 ` thenlich at users dot sourceforge.net
2011-04-16 16:03 ` jvdelisle at gcc dot gnu.org
2011-04-16 16:11 ` jvdelisle at gcc dot gnu.org
2011-04-16 17:07 ` jvdelisle at gcc dot gnu.org
2011-04-16 17:28 ` thenlich at users dot sourceforge.net
2011-04-16 17:45 ` thenlich at users dot sourceforge.net
2011-04-17 12:40 ` jvdelisle at gcc dot gnu.org
2011-04-17 13:26 ` thenlich at users dot sourceforge.net
2011-04-17 13:47   ` Jerry DeLisle
2011-04-17 13:47 ` jvdelisle at frontier dot com
2011-04-18  3:51 ` jvdelisle at gcc dot gnu.org
2011-04-18  3:53 ` jvdelisle at gcc dot gnu.org
2011-04-18  3:58 ` jvdelisle at gcc dot gnu.org
2011-04-18  6:01 ` thenlich at users dot sourceforge.net
2011-04-18  6:02 ` thenlich at users dot sourceforge.net
2011-04-18  6:32 ` thenlich at users dot sourceforge.net
2011-04-18  8:42 ` thenlich at users dot sourceforge.net
2011-04-18  8:43 ` thenlich at users dot sourceforge.net
2011-04-18  8:54 ` mikael at gcc dot gnu.org
2011-04-18 18:46 ` jvdelisle at gcc dot gnu.org
2011-04-18 18:57 ` jvdelisle at gcc dot gnu.org
2011-04-19  2:07 ` jvdelisle at gcc dot gnu.org
2011-04-19  6:07 ` burnus at gcc dot gnu.org
2011-04-19  6:09 ` thenlich at users dot sourceforge.net
2011-04-19 15:29 ` jvdelisle at gcc dot gnu.org
2011-04-19 16:23 ` burnus at gcc dot gnu.org
2011-04-19 20:03 ` jvdelisle at gcc dot gnu.org
2011-04-20  4:19 ` jvdelisle at gcc dot gnu.org
2011-04-20  6:44 ` thenlich at users dot sourceforge.net
2011-04-20 12:39 ` thenlich at users dot sourceforge.net
2011-04-20 13:02 ` burnus at gcc dot gnu.org
2011-04-21 12:45 ` jvdelisle at gcc dot gnu.org
2011-04-21 16:37 ` thenlich at users dot sourceforge.net
2011-04-21 19:09 ` jvdelisle at gcc dot gnu.org
2011-04-23 11:45 ` thenlich at users dot sourceforge.net
2011-04-29 15:00 ` jvdelisle at gcc dot gnu.org
2011-04-29 15:17 ` jvdelisle at gcc dot gnu.org
2011-05-02 12:53 ` jvdelisle at gcc dot gnu.org
2011-05-04 12:17 ` ebay.20.tedlap at spamgourmet dot com
2011-05-04 12:50 ` thenlich at users dot sourceforge.net
2011-05-04 13:05 ` jvdelisle at frontier dot com
2011-05-05 10:48 ` ebay.20.tedlap at spamgourmet dot com
2011-05-05 10:54 ` ebay.20.tedlap at spamgourmet dot com
2011-05-05 12:34 ` jvdelisle at frontier dot com
2011-05-05 12:41 ` jvdelisle at gcc dot gnu.org
2011-05-06  1:33 ` jvdelisle at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).