Skip to content
instance method

Float#/

(::BigDecimal) -> ::BigDecimal
(::Complex) -> ::Complex
(::Numeric) -> ::Float
self / other → numeric

Returns the quotient of self and other:

Example
f = 3.14
f / 2              # => 1.57
f / 2.0            # => 1.57
f / Rational(2, 1) # => 1.57
f / Complex(2, 0)  # => (1.57+0.0i)
See also #-@ #< #- #<= also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0