printf float on arm

Philippe Ney philippe.ney at pardes.ws
Tue Mar 6 07:09:03 UTC 2007


> > I build a firmware (rootfs+kernel) for my target ARM PXA255 using
> > buildroot.
> > 
> > On this target, the printf of float number is broken. I mean
> > 
> > printf("%12.3f\n", 123.456);
> > 
> > Doesn't print :      123.456
> > but           :       123456
> 
> Yes I saw this problem also with 0.9.28.2 (and 0.9.27) when locale
> support was compiled in. It works when locale support is excluded.

Hi Hamish,

Thanks for this answer. Locale is effectively the problem.
I should have test this before posting.

Cheers,
Philippe



More information about the uClibc mailing list