End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Complex#fdiv
cmp.fdiv(numeric) → complex
complex.c
View on GitHub ↗
static VALUE
nucomp_fdiv(VALUE self, VALUE other)
{
return f_divide(self, other, f_fdiv, id_fdiv);
}
Performs division as each part is a float, never returns a float.
Example
Complex(11, 22).fdiv(3) #=> (3.6666666666666665+7.333333333333333i)