From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <34B3531B.41C67EA6@iis.fhg.de> Date: Wed, 07 Jan 1998 11:04:11 +0100 From: Stefan Schroepfer Subject: Re: Doubles broken Quezcal wrote: > > If I use doubles for floating point calculations i get a lot of > floating point exceptions, e.g. with this: > > main() > { > double a,b,c; > > a = -1; > b = 1e-310; > c=a*b; > printf("%lf\n",c); > } > > [...] In addition to your second mail concerning '-mieee': The 'l' modifier is not apllicable to the 'f' format specification in printf, according to the printf man page 'f' is already suitable for double. Here is what gcc says with '-Wall': warning: use of `l' length character with `f' type character Stefan Schroepfer scr@iis.fhg.de -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com