Answers for "how to separate decimal value in python and returns fraction"

3

how to cnovert a decimal to fraction python

>>> from fractions import Fraction
>>> Fraction(0.25)
Fraction(1, 4)
Posted by: Guest on April-30-2021

Code answers related to "how to separate decimal value in python and returns fraction"

Python Answers by Framework

Browse Popular Code Answers by Language