Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b151a45 commit 79edbd5Copy full SHA for 79edbd5
1 file changed
Doc/library/fractions.rst
@@ -51,15 +51,15 @@ Rational number class.
51
52
>>> from fractions import Fraction
53
>>> Fraction('3.1415926535897932').limit_denominator(1000)
54
- Fraction(355L, 113L)
+ Fraction(355, 113)
55
56
or for recovering a rational number that's represented as a float:
57
58
>>> from math import pi, cos
59
>>> Fraction.from_float(cos(pi/3))
60
- Fraction(4503599627370497L, 9007199254740992L)
+ Fraction(4503599627370497, 9007199254740992)
61
>>> Fraction.from_float(cos(pi/3)).limit_denominator()
62
- Fraction(1L, 2L)
+ Fraction(1, 2)
63
64
65
.. method:: __floor__()
0 commit comments