Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Rational#positive?
() -> bool
rat.positive? → true or false
rational.c
View on GitHub ↗
static VALUE
nurat_positive_p(VALUE self)
{
get_dat1(self);
return RBOOL(INT_POSITIVE_P(dat->num));
}
Returns true if rat is greater than 0.