This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
sprintf problems with float precision specified
- From: Bryce Schober <bryceman at dpzone dot com>
- To: newlib at sources dot redhat dot com
- Date: Thu, 16 Oct 2003 16:12:37 -0700
- Subject: sprintf problems with float precision specified
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?
Thanks,
- Bryce Schober
---
[This E-mail scanned for viruses by digiposs.com]