div(p1)
public
Uses / to perform division, then converts the result to an integer. Numeric does not define the / operator; this is
left to subclasses.
Show source
/*
* call-seq:
* num.div(numeric) => integer
*
* Uses <code>/</code> to perform division, then converts the result to
* an integer. <code>Numeric</code> does not define the <code>/</code>
* operator; this is left to subclasses.
*/
static VALUE
num_div(x, y)
VALUE x, y;
{
return num_floor(rb_funcall(x, '/', 1, y));
}