Xref: utzoo comp.lang.c:8914 comp.sys.ibm.pc:14126 Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!uvaarpa!virginia!psy3b2.psyc.Virginia.EDU!jap7g From: jap7g@psy3b2.psyc.Virginia.EDU (Jim A. Pisano) Newsgroups: comp.lang.c,comp.sys.ibm.pc Subject: MATH Error in MS C 5.0 Message-ID: <734@virginia.acc.virginia.edu> Date: 5 Apr 88 20:34:31 GMT Sender: acc@virginia.acc.virginia.edu Reply-To: jap7g@psy3b2.psyc.Virginia.EDU (Jim A. Pisano) Distribution: na Organization: Psychology Dept., University of Va. Lines: 21 Keywords: Math Error, MS C I'm writing a simple program that times keypresses using MicroSoft C V 5.0. The times are obtained using the 'ftime()' functions. I then convert the times (in integer form) to floating point #'s (doubles) & display the times of keypresses & elapsed time between presses. After the program runs (it runs correctly), I get the error: run-time error M6101: MATH - floating-point error: invalid The manual says that I tried to calculate infinity (I already know what infinity is) or I operated on a NAN (Not A Number). 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 math emulator is used? Thanks, Jim Pisano Psychology Department University of Virginia jap7g@virginia