Method: Rational#positive?
- Defined in:
- rational.c
#positive? ⇒ Boolean
Returns true
if rat
is greater than 0.
1211 1212 1213 1214 1215 1216 |
# File 'rational.c', line 1211
static VALUE
nurat_positive_p(VALUE self)
{
get_dat1(self);
return RBOOL(INT_POSITIVE_P(dat->num));
}
|