Method: Float#quo
- Defined in:
- numeric.c
#quo(other) ⇒ Numeric
Returns the quotient from dividing self by other:
f = 3.14
f.quo(2) # => 1.57
f.quo(-2) # => -1.57
f.quo(Rational(2, 1)) # => 1.57
f.quo(Complex(2, 0)) # => (1.57+0.0i)
1300 1301 1302 1303 1304 |
# File 'numeric.c', line 1300 static VALUE flo_quo(VALUE x, VALUE y) { return num_funcall1(x, '/', y); } |