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" 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> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 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: <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 Precedence: bulk > From: "Samuel Lauber" > 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.