diff --git a/src/main/py/fractions.py b/src/main/py/fractions.py index 397b9d6..1a7f800 100644 --- a/src/main/py/fractions.py +++ b/src/main/py/fractions.py @@ -9,8 +9,8 @@ def dec_to_frac(dec_number): def reduceFraction(num, denom): gcdOfFraction = gcd(num, denom) - num /= gcdOfFraction - denom /= gcdOfFraction + num = divide(num, gcdOfFraction) + denom = divide(denom, gcdOfFraction) return (num, denom) def addFractions(num1, denom1, num2, denom2):