odd?()
Returns true if int is an odd number.
/* * call-seq: * int.odd? -> true or false * * Returns <code>true</code> if <i>int</i> is an odd number. */ static VALUE int_odd_p(VALUE num) { if (rb_funcall(num, '%', 1, INT2FIX(2)) != INT2FIX(0)) { return Qtrue; } return Qfalse; }