method

imag

v2_2_9 - Show latest stable - Class: Complex
imag()
public

Returns the imaginary part.

Complex(7).imaginary      #=> 0
Complex(9, -4).imaginary  #=> -4