From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4228 invoked by alias); 14 Aug 2012 07:41:23 -0000 Received: (qmail 4213 invoked by uid 22791); 14 Aug 2012 07:41:22 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SARE_SUB_PCT_LETTER X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Aug 2012 07:41:08 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 4E9C42F7800D for ; Tue, 14 Aug 2012 08:41:07 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w6F-GXw9CbdU; Tue, 14 Aug 2012 08:41:06 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 20804] Misbehavior of printf %e format. X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: C library X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sergei.gavrikov@gmail.com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: 2.0 Final X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 14 Aug 2012 07:41:00 -0000 Message-Id: <20120814074105.D28442F7800E@mail.ecoscentric.com> Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2012/txt/msg01184.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=20804 --- Comment #9 from Sergei Gavrikov 2012-08-14 08:41:03 BST --- Created an attachment (id=1895) --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1895) printf() zero-padding issue fix And may be just to expand a set of the arguments the cvt()? See the patch. Then this printf("%g %- 30.18e\n", 3.14e-11, 3.14e-11); printf("%g %- 30.18f\n", 3.14e-11, 3.14e-11); will output 3.14e-11 3.140000000000001000e-11 3.14e-11 0.000000000031400000 Sergei -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.