By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

System.DivideByZeroException, What does this error means?"

P: 20
hi,

Has anyone ran into this error? please help.


System.DivideByZeroException: Attempted to divide by zero.
at Caller.Call
at BuiltinFunctionCaller<System.__Canon,System.__Cano n,System.__Canon,System.__Canon,System.__Canon,Sys tem.Int32>.Call5
at System.Dynamic.UpdateDelegates.UpdateAndExecute7
at IronPython.Runtime.Importer.Import
at IronPython.Runtime.Operations.PythonOps.Initialize Module
at PythonMain.Main
Sep 4 '10 #1
Share this Question
Share on Google+
2 Replies


bvdet
Expert Mod 2.5K+
P: 2,851
Basically, the error means exactly what it says. A division calculation was attempted where the divisor was 0. On my system, the error looks like this:
Expand|Select|Wrap|Line Numbers
  1. >>> 1/0
  2. Traceback (most recent call last):
  3.   File "<interactive input>", line 1, in ?
  4. ZeroDivisionError: integer division or modulo by zero
  5. >>> 1.0/0
  6. Traceback (most recent call last):
  7.   File "<interactive input>", line 1, in ?
  8. ZeroDivisionError: float division
  9. >>> 
Sep 4 '10 #2

P: 20
im running the program in SharpDevelop.somehow it did not give in which line is the error. really make it difficult to debug. =(
Sep 4 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.