method

infinite?

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

Returns values corresponding to the value of cmp's magnitude:

finite

nil

+Infinity

+1

For example:

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