APIdock / Ruby
/
method

real

ruby latest stable - Class: Complex
real()
public

Returns the real part.

Complex (7).real  #=> 7
Complex (9, -4).real  #=> 9
static VALUE
nucomp_real(VALUE self)
{
 get_dat1(self);
 return dat->real;
}

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