LifeinAsia - 10:32 pm on Aug 15, 2008 (gmt 0) Um, exactly what was the question again?
Generally, when you have a divide by zero, it's because you have bad data or a situation you shouldn't be in in the first place. So rather than returning an incorrect fudged value, it's usually better practice to return an exception to allow the user to re-enter data or fix the problem. But as timster says, it's kind of hard to tell what the app should be doing, so difficult to advise what the correct answer should be.
Um, exactly what was the question again?