APIdock / Ruby
/
method

imaginary

ruby latest stable - Class: Complex
imaginary()
public

Returns the imaginary part.

Complex (7).imaginary  #=> 0
Complex (9, -4).imaginary  #=> -4
static VALUE
nucomp_imag(VALUE self)
{
 get_dat1(self);
 return dat->imag;
}

AltStyle によって変換されたページ (->オリジナル) /