Skip to content
instance method

Numeric#div

(::Numeric) -> ::Integer
div(other) → integer

Returns the quotient self/other as an integer (via floor), using method / as defined in the subclass of Numeric. (Numeric itself does not define /.)

Of the Core and Standard Library classes, Only Float and Rational use this implementation.

See also #denominator #divmod #conjugate #dup also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0