Flowdock
infinite?() public

Return values corresponding to the value of float:

finite

nil

-Infinity

-1

+Infinity

1

For example:

(0.0).infinite?        #=> nil
(-1.0/0.0).infinite?   #=> -1
(+1.0/0.0).infinite?   #=> 1
Show source
Register or log in to add new notes.