App Academy

Zero division error in Ruby

Learning Challenge

Question Zero division error

What I’ve tried

I typed “puts !(1/0>1)”, then a zero division error message was reported on the output space. Then I changed the expression to “puts !(1.0/0>1)”, I got a false result. What is the mechanism behind this?

Screenshots