diff --git a/src/main/py/fractions.py b/src/main/py/fractions.py index 101f37d..397b9d6 100644 --- a/src/main/py/fractions.py +++ b/src/main/py/fractions.py @@ -1,7 +1,8 @@ from src.main.py.more_advanced_calculations import gcd, lcm +from src.main.py.primitive_calculations import * def frac_to_dec(num, denom): - return num/denom + return divide(num, denom) def dec_to_frac(dec_number): return dec_number.as_integer_ratio()