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 

Divide by Zero

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
AjithSivakumar



Joined: 04 Jan 2008
Posts: 14

PostPosted: Mon Jun 30, 2008 3:44 pm    Post subject: Divide by Zero Reply with quote

Hi,

I am getting some run time errors which says 'Divide by zero'. can you please tell me is there any way to set this to default value lets say skip that particular line where it is dividing by zero.
Whether this can be done by any of the configuraiton settings other than changing the code?
Back to top
View user's profile Send private message
JohnHorspool



Joined: 26 Sep 2005
Posts: 270
Location: Gloucestershire UK

PostPosted: Mon Jun 30, 2008 4:48 pm    Post subject: Reply with quote

'Divide by zero' is an illegal operation in any language. Your source code should check the values of the variables and prevent this from happening. I hope that there is not a way to "skip" this operation, because if there is then any results produced by the program will be meaningless.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support 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