Have division by zero result in undefined in calculator