Method: Rational#negative?
- Defined in:
- rational.c
#negative? ⇒ Boolean
Returns true
if rat
is less than 0.
1224 1225 1226 1227 1228 1229 |
# File 'rational.c', line 1224
static VALUE
nurat_negative_p(VALUE self)
{
get_dat1(self);
return RBOOL(INT_NEGATIVE_P(dat->num));
}
|