Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!brl-adm!adm!kgodfrey@prophet.bbn.com From: kgodfrey@prophet.bbn.com Newsgroups: comp.lang.c Subject: Help in dealing with floating point exceptions in C on UNIX/VAX Message-ID: <4433@brl-adm.ARPA> Date: Thu, 12-Feb-87 18:48:11 EST Article-I.D.: brl-adm.4433 Posted: Thu Feb 12 18:48:11 1987 Date-Received: Fri, 13-Feb-87 21:58:21 EST Sender: news@brl-adm.ARPA Lines: 16 I'm new to C, and I'm trying to get some C code from an outside vendor to run on a VAX running Berkeley 4.3 UNIX. The problem I'm having is that I can't figure out how to trap floating point exceptions. I've tried the infnan routine mentioned in the 4.3 manual, but I'm obviously doing something wrong. It seems to me there must be some reasonable way to deal with this problem, but I've exhausted the expertise in my immediate vicinity. Can someone help me rescue myself from core dumps? What I'd like to do is have the procedure propagate REALLY_BIG_NUMBER when it gets an arithmetic overflow, instead of hitting infinity and core dumping. Thanks for any help/advice/leads. Kathy Godfrey kgodfrey@prophet.bbn.com