= private = protected
div(p1)
Uses / to perform division, then converts the result to an integer. numeric does not define the / operator; this is left to subclasses.
Equivalent to num.divmod(aNumeric)[0].
See Numeric#divmod.
static VALUE num_div(VALUE x, VALUE y) { if (rb_equal(INT2FIX(0), y)) rb_num_zerodiv(); return rb_funcall(rb_funcall(x, '/', 1, y), rb_intern("floor"), 0); }