From: Guy Rauscher Newsgroups: comp.os.msdos.djgpp Subject: Floating point exception problem Date: Mon, 05 May 1997 23:30:08 -0700 Organization: NetVision LTD. Lines: 18 Message-ID: <336ECFF0.1DEF@netvision.net.il> NNTP-Posting-Host: ts004p11.pop9a.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi! I've constructed a small library for easily creating 3d applications with Allegro. I've produced a small program to demonstrate the functionality of my library and it ackwardly breaks sometimes due to a floating point exception. The real problem is that the exception occurs when the 3d clipping function is used but sometimes when I run the program, it works fine. This is NOT because the condition that causes the exception gets randomly unencountered. The clipping function uses floating point division. What I'd like to know is: what is it that causes a FPE in the first place and more specifically, what can I do to fix my program? If necessary, I'll post the source code. Thanks, Guy