silverfrost Site Admin
Joined: 29 Nov 2006 Posts: 191 Location: Manchester
|
Posted: Sun Sep 05, 2004 6:54 pm Post subject: What would cause an "Unknown floating point exception&q |
|
|
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:
Code: |
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. |
|