This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]