OverflowError: math range error...
Sheldon
shejo284 at gmail.com
Thu Jun 22 04:45:08 EDT 2006
Hi,
I have a written a script that will check to see if the divisor is zero
before executing but python will not allow this:
if statistic_array[0:4] > 0.0:
statistic_array[0,0:4] =
int(multiply(divide(statistic_array[0,0:4],statistic_array \
[0,4]),10000.0))/100.0
Does anyone know why Python is complaining:
"statistic_array[0,0:4] =
int(multiply(divide(statistic_array[0,0:4],statistic_array[0,4]),10000.0))/100.0
OverflowError: math range error"
and how do I get around this problem? This stupid because there is a if
statement preventing this "dividing by zero".
Sincerely,
Sheldon
More information about the Python-list
mailing list