3 lines
93 B
Python
3 lines
93 B
Python
|
from fractions import Fraction
|
||
|
value = 4.2
|
||
|
print(Fraction(value).limit_denominator())
|