Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Numeric#to_c
to_c → complex
complex.c
View on GitHub ↗
static VALUE
numeric_to_c(VALUE self)
{
return rb_complex_new1(self);
}
Returns self as a Complex object.