View previous topic :: View next topic |
Author |
Message |
AjithSivakumar
Joined: 04 Jan 2008 Posts: 14
|
Posted: Mon Jun 30, 2008 3:44 pm Post subject: Divide by Zero |
|
|
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 |
|
|
JohnHorspool
Joined: 26 Sep 2005 Posts: 270 Location: Gloucestershire UK
|
Posted: Mon Jun 30, 2008 4:48 pm Post subject: |
|
|
'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 |
|
|
|