This is the mail archive of the ecos-discuss@sourceware.cygnus.com 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]

printf %e format bug.


Hello,

The

printf("%g %- 30.18e\n", 3.14e-11, 3.14e-11);

outputs:

3.14e-11  3.140000000000001e-11000

The exponent of the second representation is wrong.

BR,
Sergei Organov.


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