Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python float to fraction

>>> from fractions import Fraction
>>> Fraction(0.25)
Fraction(1, 4)
 
PREVIOUS NEXT
Tagged: #python #float #fraction
ADD COMMENT
Topic
Name
9+4 =