This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 20804] Misbehavior of printf %e format.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]