Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Numeric#abs2
() -> self
abs2 → real
complex.c
View on GitHub ↗
static VALUE
numeric_abs2(VALUE self)
{
return f_mul(self, self);
}
Returns the square of self.