APIdock / Ruby
/
method

fdiv

ruby latest stable - Class: Integer
fdiv(p1)
public

Returns the floating point result of dividing int by numeric.

654321.fdiv (13731) #=> 47.652829364212366
654321.fdiv (13731.24) #=> 47.65199646936475
-654321.fdiv (13731) #=> -47.652829364212366
VALUE
rb_int_fdiv(VALUE x, VALUE y)
{
 if (RB_INTEGER_TYPE_P(x)) {
 return DBL2NUM(rb_int_fdiv_double(x, y));
 }
 return Qnil;
}

AltStyle によって変換されたページ (->オリジナル) /