How to avoid divide by zero errors?

Original text of this message