Solution exception:Attempted to divide by zero error

Thank you, @chris. I tried and got the same result
ERROR.gh (38.0 KB)