divmod(other)
Returns the quotient and remainder.
Examples:
r = Rational(7,4) # -> Rational(7,4) r.divmod Rational(1,2) # -> [3, Rational(1,4)]
# File lib/rational.rb, line 269 def divmod(other) value = (self / other).floor return value, self - other * value end