|
@ -1,7 +1,8 @@ |
|
|
from src.main.py.more_advanced_calculations import gcd, lcm |
|
|
from src.main.py.more_advanced_calculations import gcd, lcm |
|
|
|
|
|
from src.main.py.primitive_calculations import * |
|
|
|
|
|
|
|
|
def frac_to_dec(num, denom): |
|
|
def frac_to_dec(num, denom): |
|
|
return num/denom |
|
|
|
|
|
|
|
|
return divide(num, denom) |
|
|
|
|
|
|
|
|
def dec_to_frac(dec_number): |
|
|
def dec_to_frac(dec_number): |
|
|
return dec_number.as_integer_ratio() |
|
|
return dec_number.as_integer_ratio() |
|
|