Method: Numeric#fdiv

Defined in:
numeric.c

#fdiv(other) ⇒ Float

Returns the quotient self/other as a float, using method / in the derived class of self. (Numeric itself does not define method /.)

Of the Core and Standard Library classes, only BigDecimal uses this implementation.

Returns:



606
607
608
609
610
# File 'numeric.c', line 606

static VALUE
num_fdiv(VALUE x, VALUE y)
{
    return rb_funcall(rb_Float(x), '/', 1, y);
}