From: Mark Dickinson Date: Sun, 28 Jun 2009 20:40:04 +0000 (+0000) Subject: Merged revisions 73632 via svnmerge from X-Git-Tag: 3.0~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c14706eed0305a4f55ce2a957cf8c6145a03075a;p=thirdparty%2FPython%2Fcpython.git Merged revisions 73632 via svnmerge from 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. ........ --- diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 81878275bc5d..d668c023c7c6 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -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