Is a divide by zero infinite : infinite « Number « Ruby






Is a divide by zero infinite


(-1.0/0.0).infinite? # => -1
(+1.0/0.0).infinite? # => 1

 








Related examples in the same category

1.Is a float finite
2.Is a divide by zero finite
3.Is it infinite