From c14706eed0305a4f55ce2a957cf8c6145a03075a Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Sun, 28 Jun 2009 20:40:04 +0000 Subject: [PATCH] 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. ........ --- Doc/library/decimal.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3