APIdock / Ruby
/
method

eql?

ruby latest stable - Class: Complex
eql?(p1)
public

No documentation available.

static VALUE
nucomp_eql_p(VALUE self, VALUE other)
{
 if (RB_TYPE_P(other, T_COMPLEX)) {
 get_dat2(self, other);
 return f_boolcast((CLASS_OF(adat->real) == CLASS_OF(bdat->real)) &&
 (CLASS_OF(adat->imag) == CLASS_OF(bdat->imag)) &&
 f_eqeq_p(self, other));
 }
 return Qfalse;
}

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