sprintf problems with float precision specified

Bryce Schober bryceman@dpzone.com
Wed Oct 22 16:24:00 GMT 2003

For starters, my target is an arm-elf (arm7) built from newlib-1.11.0 
combined with gcc-3.3 on cygwin.  I'm having problems with sprintf when 
I specify a format string like "%.10e" instead of just "%e" for a float 
variable.  Instead of getting something like 6.5159257821e+03, I get 
something like 1.1111111112e+03.  Any ideas?

- Bryce Schober

[This E-mail scanned for viruses by digiposs.com]

More information about the Newlib mailing list