This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 20804] Misbehavior of printf %e format.
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Tue, 14 Aug 2012 08:41:05 +0100
- Subject: [Bug 20804] Misbehavior of printf %e format.
- Auto-submitted: auto-generated
- References: <bug-20804-13@http.bugs.ecos.sourceware.org/>
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 <sergei.gavrikov@gmail.com> 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.