Quote:
Originally Posted by theducks
When you make an Int from a small fraction, you could end up with a zero .
You really need to test for that before attempting division
|
In this case, it would seem ratelist would have to have no members for the len to be set to 0. I am also wondering why the conversion to int is being done -- the len() function should be returning an int.
Perhaps a look at how ratelist is being generated and what is being returned? A few print statements to see what is actually being generated?