From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9709170137.AA04133@batu.hip.atr.co.jp> Date: Wed, 17 Sep 1997 10:37:00 +0900 From: Eric Woudenberg Subject: How to get DEC OSF1 floating point behavior? Hi, I'm a happy Alpha Linux 4.2 user but I'd like to get "normal" Unix behavior on floating point overflow. This statement: double a = 1.0/exp(720); on OSF1, SunOS, and HP-UX quietly sets a to 0.0. On Linux is causes an FPE trap, even if I set SIGFPE to SIG_IGN. Any suggestions for how to get back to the old "silent" behavior? Thanks, Rick Woudenberg ----------------------------------- My test program: #include double exp(); main() { double e; printf("signal = %d\n", signal(SIGFPE, SIG_IGN)); e = 1.0/exp(720.0); printf("e = %e\n", e); } -- 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