method

infinite?

Importance_1
v2_6_3 - Show latest stable - 0 notes - Class: Complex
infinite?() public

Returns 1 if cmp's real or imaginary part is an infinite number, otherwise returns nil.

For example:

   (1+1i).infinite?                   #=> nil
   (Float::INFINITY + 1i).infinite?   #=> 1
Show source
Register or log in to add new notes.