Silverfrost Forums

Welcome to our forums

What would cause an "Unknown floating point exception" error?

5 Sep 2004 5:54 #13

This error is usually caused by incorrectly calling functions that return real's.

For example, the following code would cause a floating point stack fault:

real function myfunc()
myfunc = 1.0
end
program fpsf
integer i
!real myfunc
do i=1,999999
call myfunc()
end do
end

Note that if the function is declared as returning a real then the compiler will produce an error.

Solution

Ensure all your functions returning reals are being called correctly as functions.


-- Admin Silverfrost Limited
This forum is locked.