(a, b)
return Fraction((a.numerator * db) % (b.numerator * da), da * db)
a % b
a % b
a % b
def _mod(a, b):
        """a % b"""
        da, db = a.denominator, b.denominator
        return Fraction((a.numerator * db) % (b.numerator * da), da * db)
def _mod ( a , b ) : da , db = a . denominator , b . denominator return Fraction ( ( a . numerator * db ) % ( b . numerator * da ) , da * db )