From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11818 invoked by alias); 28 Apr 2011 10:09:15 -0000 Received: (qmail 11809 invoked by uid 22791); 28 Apr 2011 10:09:15 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Apr 2011 10:09:01 +0000 From: "thenlich at users dot sourceforge.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/48511] Implement Steele-White algorithm for numeric output X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: thenlich at users dot sourceforge.net X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Thu, 28 Apr 2011 10:09:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg02859.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D48511 --- Comment #11 from Thomas Henlich = 2011-04-28 10:01:45 UTC --- (In reply to comment #10) > As an addendum to the above, one thing we could do with modest effort and > without importing Gay's code would be to remove trailing zeros for G0 (and > maybe list directed) output. For this to be useful, it would require to choose a precision of not more t= han P(bf) =3D floor(p=C3=97log10(2)); or floor(p=C3=97log10(2)) - 1, I'm not qu= ite sure. That would be P =3D {7, 15, 19, 34} or {6, 14, 18, 33}. We then would have a loss of precision and no guarantee of round-trip conversion to the same number.