mirror of https://github.com/python/cpython
Merged revisions 76456 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76456 | mark.dickinson | 2009-11-23 16:23:43 +0000 (Mon, 23 Nov 2009) | 2 lines Issue #7379: Fix incorrect doctest for Fraction.limit_denominator. ........
This commit is contained in:
parent
55fa13cb69
commit
fb681f701d
|
@ -148,8 +148,8 @@ class Fraction(Rational):
|
|||
Fraction(22, 7)
|
||||
>>> Fraction('3.141592653589793').limit_denominator(100)
|
||||
Fraction(311, 99)
|
||||
>>> Fraction(1234, 5678).limit_denominator(10000)
|
||||
Fraction(1234, 5678)
|
||||
>>> Fraction(4321, 8765).limit_denominator(10000)
|
||||
Fraction(4321, 8765)
|
||||
|
||||
"""
|
||||
# Algorithm notes: For any real number x, define a *best upper
|
||||
|
|
Loading…
Reference in New Issue