instance method
Numeric#angle
() -> ::Numeric
angle
complex.c
View on GitHub ↗
static VALUE
numeric_arg(VALUE self)
{
if (f_positive_p(self))
return INT2FIX(0);
return DBL2NUM(M_PI);
}
Alias of #arg
Returns zero if self is positive, Math::PI otherwise.