From: korpela AT islay DOT ssl DOT berkeley DOT edu (Eric J. Korpela) Newsgroups: comp.os.msdos.djgpp Subject: Re: Q: detecting valid floating point numbers? Date: 10 Dec 1996 20:02:18 GMT Organization: Cal Berkeley-- Space Sciences Lab Lines: 19 Message-ID: <58kfka$5r1@agate.berkeley.edu> References: <58gvqc$26p AT newsfeed DOT cs DOT auc DOT dk> NNTP-Posting-Host: islay.ssl.berkeley.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <58gvqc$26p AT newsfeed DOT cs DOT auc DOT dk>, Frank Frederiksen wrote: >In our research project we are transmitting some floating point >numbers over a radio channel (the position of a mobile transmitter). > >Our problem is that we sometimes get bit errors, i.e., some of the >bits in the numbers are wrong. When we analyze the data, we then >sometimes get a 'exiting due to SIGFPE' followed by a stack trace. The first thing to do if you want to avoid the aborts is to use _control87 to set the exception mask to avoid such exits. (The other option is to use a signal handler to fix the exception.) Eric -- Eric Korpela | An object at rest can never be korpela AT ssl DOT berkeley DOT edu | stopped. Click here for more info.