infinite? Returns nil,1,or +1 depending on whether flt is finite. : Number class « Number « Ruby






infinite? Returns nil,1,or +1 depending on whether flt is finite.


(0.0).infinite?  
(?.0/0.0).infinite? 
(+1.0/0.0).infinite?  

 








Related examples in the same category

1.Numbers are classes
2.Number Introduction
3.Ruby has a number of classes and modules related to numbers.
4.Math class and module hierarchy
5.floor Returns the largest integer less than or equal.
6.modulo(numeric): Synonym for Float#%.