[uClibc]printf and floats

Ian Leonard ileonard at ntlworld.com
Wed Oct 3 17:31:17 UTC 2001


On 2001.10.03 16:32 Cam Mayor wrote:
> Ian Leonard writes:
> >
> > Why does:
> > printf ( "%f\n", 33.33)
> >
> > produce:
> > 0.000000
> 
> it produces 33.330000 for me.
> 
> > I tried the copy of uClibc that comes with the m68k-elf tools and also
> > compiled the lastest CVS
> 
> i am unable to determine which version of uClibc i have (can't find
> version
> information), but it was a snapshot tarball from about two months ago. 
> my
> gcc is version 2.95.3

Thanks for the info. My gcc is also 2.95.3.

What compiler options are you using? I have this working on a uCsimm
but it won't work on a Coldfire.

--
Ian Leonard                  
eMail: ileonard at ntlworld.com 
Phone: +44 (0)1865 765273

Please ignore spelling and punctuation - I did.





More information about the uClibc mailing list