Interesting ruby error… Infinity instead of ZeroDivisionError

By | October 7, 2013

Did the internet just explode?

>> ((1 - 0).to_f / 0.to_f)
=> Infinity
>> (1 - 0)/0
!! #

Leave a Reply

Your email address will not be published. Required fields are marked *