Mail Archives: djgpp/1997/09/20/21:22:58
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 -