= 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.
static VALUE num_div(VALUE x, VALUE y) { if (rb_equal(INT2FIX(0), y)) rb_num_zerodiv(); return num_floor(rb_funcall(x, '/', 1, y)); }