This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: printf %e format bug.
- To: Sergei Organov <osv at javad dot ru>
- Subject: Re: [ECOS] printf %e format bug.
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Tue, 11 Apr 2000 15:46:52 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <87ln2ksoa8.fsf@osv.javad.ru>
Sergei Organov wrote:
>
> 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.
Can you report this at http://sourceware.cygnus.com/ecos/problemreport.html
please? I doubt this is something I'll have much of a chance to look at
soon (although you're welcome to have a go yourself of course :-)).
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault