Trapped divide by zero

Was throwing "FloatDomainError: NaN"