End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Complex#finite?
cmp.finite? → true or false
complex.c
View on GitHub ↗
static VALUE
rb_complex_finite_p(VALUE self)
{
get_dat1(self);
return RBOOL(f_finite_p(dat->real) && f_finite_p(dat->imag));
}
Returns true if cmp‘s real and imaginary parts are both finite numbers, otherwise returns false.