public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "coudert at clipper dot ens dot fr" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/20124] gfortran prints -.01 incorrectly Date: Thu, 24 Feb 2005 20:40:00 -0000 [thread overview] Message-ID: <20050224162454.29724.qmail@sourceware.org> (raw) In-Reply-To: <20050221191554.20124.dir@lanl.gov> ------- Additional Comments From coudert at clipper dot ens dot fr 2005-02-24 16:24 ------- $ cat pr20124.f x = -.01 y = .01 write(*,'(2f10.2)') x, y print *, x, y end $ ./bin/gfortran -static pr20124.f && ./a.out 0.00 0.00 -9.9999998E-03 9.9999998E-03 It looks like we're not handling the rounding correctly in this case (if you try with x=-0.05, which can be represented in a real exactly, it doesn't happen). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20124
next prev parent reply other threads:[~2005-02-24 16:24 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-02-21 23:13 [Bug fortran/20124] New: " dir at lanl dot gov 2005-02-21 23:17 ` [Bug libfortran/20124] " pinskia at gcc dot gnu dot org 2005-02-24 20:40 ` coudert at clipper dot ens dot fr [this message] 2005-02-24 22:18 ` coudert at clipper dot ens dot fr 2005-03-11 8:03 ` cvs-commit at gcc dot gnu dot org 2005-03-11 8:03 ` cvs-commit at gcc dot gnu dot org 2005-03-11 14:17 ` pinskia at gcc dot gnu dot org 2005-03-15 21:49 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050224162454.29724.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).