forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    forums.silverfrost.com Forum Index -> KBase
View previous topic :: View next topic  
Author Message
silverfrost
Site Admin


Joined: 29 Nov 2006
Posts: 169
Location: Manchester

PostPosted: Sun Sep 05, 2004 6:54 pm    Post subject: What would cause an "Unknown floating point exception&q Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    forums.silverfrost.com Forum Index -> KBase All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group