mirror of
https://github.com/python/cpython.git
synced 2025-12-11 19:40:17 +00:00
Issue #7379: Fix incorrect doctest for Fraction.limit_denominator.
This commit is contained in:
parent
12adc655c8
commit
e13dc3e6d5
1 changed files with 2 additions and 2 deletions
|
|
@ -164,8 +164,8 @@ class Fraction(Rational):
|
||||||
Fraction(22, 7)
|
Fraction(22, 7)
|
||||||
>>> Fraction('3.141592653589793').limit_denominator(100)
|
>>> Fraction('3.141592653589793').limit_denominator(100)
|
||||||
Fraction(311, 99)
|
Fraction(311, 99)
|
||||||
>>> Fraction(1234, 5678).limit_denominator(10000)
|
>>> Fraction(4321, 8765).limit_denominator(10000)
|
||||||
Fraction(1234, 5678)
|
Fraction(4321, 8765)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# Algorithm notes: For any real number x, define a *best upper
|
# Algorithm notes: For any real number x, define a *best upper
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue