Divmod

quotient, remainder = divmod(numerator, denominator)
Johan