From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22247 invoked by alias); 1 Mar 2011 14:45:09 -0000 Received: (qmail 22148 invoked by uid 22791); 1 Mar 2011 14:45:07 -0000 X-SWARE-Spam-Status: No, hits=-2.8 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; Tue, 01 Mar 2011 14:45:01 +0000 From: "thenlich at users dot sourceforge.net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/47945] REAL(8) output conversion error on MinGW32 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: normal X-Bugzilla-Who: thenlich at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED 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" MIME-Version: 1.0 Date: Tue, 01 Mar 2011 14:45: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-03/txt/msg00083.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47945 --- Comment #4 from Thomas Henlich 2011-03-01 14:44:54 UTC --- (In reply to comment #3) > 0.14285714285714284921875000000000 is still within the accuracy of IEEE double. > All numbers map to the same IEEE double. This is technically correct; however a program should also observe portability and usability rules and not just pick any number from a valid range, but the number which is the most useful to the program user: either the one most common across platforms and other compilers (0.14285714285714284921269268124888) or the "shortest" one (0.14285714285714285000000000000000). It is very hard to compare long numeric result listings obtained on different platforms/compilers if some digits (however insignificant) never match.