This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: printf %e format bug.
- To: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Subject: Re: [ECOS] printf %e format bug.
- From: Sergei Organov <osv at javad dot ru>
- Date: 11 Apr 2000 19:13:15 +0400
- Cc: ecos-discuss at sourceware dot cygnus dot com
- References: <87ln2ksoa8.fsf@osv.javad.ru> <38F33ADC.C7BE4968@redhat.co.uk>
Submitted.
Jonathan Larmour <jlarmour@redhat.co.uk> writes:
> 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