| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| Date: | Sat, 08 Jan 2005 22:13:09 +0200 |
| From: | "Eli Zaretskii" <eliz AT gnu DOT org> |
| Sender: | halo1 AT zahav DOT net DOT il |
| To: | djgpp AT delorie DOT com |
| Message-ID: | <01c4f5be$Blat.v2.2.2$9e630f60@zahav.net.il> |
| X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 |
| In-reply-to: | <6_TDd.54474$nP1.27946@twister.socal.rr.com> |
| (sam124 AT operamail DOT com) | |
| Subject: | Re: Strange problems with printf() |
| References: | <NsLDd.54447$nP1 DOT 27785 AT twister DOT socal DOT rr DOT com> <01c4f56a$Blat.v2.2.2$ecce5460 AT zahav DOT net DOT il> <6_TDd.54474$nP1 DOT 27946 AT twister DOT socal DOT rr DOT com> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: "Samuel Lauber" <sam124 AT operamail DOT com>
> Date: Sat, 08 Jan 2005 16:36:18 GMT
>
> > The first warning is directly related to what you see: you should use
> > printf("%f\n", 1.0);
> > i.e. make the argument be a float or a double, not an int.
> The first floating point number I tried was 5.86, and I tried
> it with smaller and smaller FP numbers, with /without
> decimal points. Change it to 5.86 or even 1.1.
5.86 works for me. If it doesn't for you, please post the details of
your DJGPP setup: the versions of the compiler and Binutils, the
version of the library, and the OS on which you are running DJGPP.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |