From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199801062028.VAA28940@xyllomer.uni-paderborn.de> Date: Tue, 6 Jan 1998 21:28:40 +0100 (MET) From: Quezcal Subject: Doubles broken I am running an PC164LX 533Mhz Samsung Cpu Redhat 5.0 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); } Anything that uses a double from about e-308 to e-323 gives a float.exception. Smaller and larger exponents just give -0 as would be right. Any help? This is rather annoying for ray tracing. If I use float instead it works. Could anybody veryfy this please? I tried gcc and egcs-1.0, same effect. Help :)! Email in reply would be most helpfull, thanks, Olaf -- 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