From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29138 invoked by alias); 5 May 2011 10:58:08 -0000 Received: (qmail 29128 invoked by uid 22791); 5 May 2011 10:58:08 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_YB 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, 05 May 2011 10:57:54 +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, 05 May 2011 10:58: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-05/txt/msg00427.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D48511 --- Comment #13 from Thomas Henlich = 2011-05-05 10:57:33 UTC --- G95 is actually using this method for list-directed output. print *, .3, .33, .333, .3333, .33333, .333333, .3333333 g95 =3D> 0.3 0.33 0.333 0.3333 0.33333 0.333333 0.3333333 gfortran =3D> 0.300000012 0.330000013 0.333000004 0.333299994 0.333330005 0.333332986 0.333333313 =46rom ftoa.c: /* All software =C2=A9 1996 Robert G. Burger. Permission is hereby granted, ... * This code is described in an article by Robert G. Burger and * R. Kent Dybvig in "Proceedings of the ACM SIGPLAN '96 Conference on * Programming Language Design and Implementation", pages 108-116, May * 1996. * * Modified for use with g95 by Andy Vaught. Thanks Bob! */