Skip to content

Commit c14706e

Browse files
committed
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. ........
1 parent 1ee5864 commit c14706e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/decimal.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ floating point flying circus:
189189
'1.34'
190190
>>> float(a)
191191
1.3400000000000001
192-
>>> round(a, 1) # round() first converts to binary floating point
193-
1.3
192+
>>> round(a, 1)
193+
Decimal('1.3')
194194
>>> int(a)
195195
1
196196
>>> a * 5

0 commit comments

Comments
 (0)