==(p1) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
nucomp_equal_p(VALUE self, VALUE other)
{
    if (k_complex_p(other)) {
        get_dat2(self, other);

        return f_boolcast(f_equal_p(adat->real, bdat->real) &&
                          f_equal_p(adat->imag, bdat->imag));
    }
    if (k_numeric_p(other) && f_real_p(other)) {
        get_dat1(self);

        return f_boolcast(f_equal_p(dat->real, other) && f_zero_p(dat->imag));
    }
    return f_equal_p(other, self);
}
Register or log in to add new notes.