www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/20/21:22:58

Date: Sat, 20 Sep 1997 18:21:16 -0700 (PDT)
Message-Id: <199709210121.SAA23867@adit.ap.net>
Mime-Version: 1.0
To: "Nicholas Law" <nic DOT law AT dial DOT pipex DOT com>, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Floating Point Exception

At 09:06  9/20/1997 GMT, Nicholas Law wrote:
>Hi all!
>
>What does a floating point exception actually mean? I keep getting it in my
>3D rotation code. Is it something to do with the cos and sin functions, or
>am I dividing by zero or something?
Could be any of the above. The SIGFPE indicates some sort of math error
reported by the coprocessor, and also integer division by zero. Math errors
can include using NaN's, dividing by zero, logs and roots of negative
numbers, and probably several other things. Try compiling with -g and using
symify on the traceback you get when the error happens. This should help you
find it.

HTH

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019