Xref: utzoo comp.lang.c:9101 comp.sys.ibm.pc:14301 Path: utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!cadre!pitt!darth!formtek!ditka!csanta!greg From: greg@csanta.UUCP (Greg Comeau) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: Re: MATH Error in MS C 5.0 Message-ID: <123@csanta.UUCP> Date: 9 Apr 88 04:26:15 GMT References: <734@virginia.acc.virginia.edu> Reply-To: greg@csanta.UUCP (Greg Comeau) Distribution: na Organization: Comeau Computing, Richmond Hill, NY Lines: 11 In article <734@virginia.acc.virginia.edu> jap7g@psy3b2.psyc.Virginia.EDU (Jim A. Pisano) writes: >I get the error: >run-time error M6101: MATH >- floating-point error: invalid > >Here's my question: How can I find out where that NAN is? I have CodeView, >but I haven't figured out how to trap this math error short of checking >every variable everywhere. Is there a way to set a tracepoint when the You might be able to find out by using the signal() function so that it traps SIGFPE and jumps to one of your routines.