method

divmod

Importance_1
v1_8_7_72 - Show latest stable - 0 notes - Class: Rational
divmod(other) public

Returns the quotient and remainder.

Examples:

  r = Rational(7,4)        # -> Rational(7,4)
  r.divmod Rational(1,2)   # -> [3, Rational(1,4)]
Show source
Register or log in to add new notes.