]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 73632 via svnmerge from
authorMark Dickinson <dickinsm@gmail.com>
Sun, 28 Jun 2009 20:40:04 +0000 (20:40 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 28 Jun 2009 20:40:04 +0000 (20:40 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r73632 | mark.dickinson | 2009-06-28 21:36:54 +0100 (Sun, 28 Jun 2009) | 3 lines

  Corrections to decimal flying circus:  round returns a Decimal;
  float should have a short repr.
........

Doc/library/decimal.rst

index 81878275bc5d1f1fc82b8197ed95dbde700a7e36..d668c023c7c6e909594cf969084ae75154ae6f72 100644 (file)
@@ -189,8 +189,8 @@ floating point flying circus:
    '1.34'
    >>> float(a)
    1.3400000000000001
-   >>> round(a, 1)     # round() first converts to binary floating point
-   1.3
+   >>> round(a, 1)
+   Decimal('1.3')
    >>> int(a)
    1
    >>> a * 5