summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-06-28 21:56:07 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-06-28 21:56:07 (GMT)
commitbf2170b1131b1cbcda38094d98fe33945fc0e3a6 (patch)
tree30a548b4f78a8a32803ed6b2b208ea56d3ad943c /Doc
parent230d2a2075e67b0b944c454187846ebc106e9a02 (diff)
downloadcpython-bf2170b1131b1cbcda38094d98fe33945fc0e3a6.zip
cpython-bf2170b1131b1cbcda38094d98fe33945fc0e3a6.tar.gz
cpython-bf2170b1131b1cbcda38094d98fe33945fc0e3a6.tar.bz2
Merged revisions 73653 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r73653 | mark.dickinson | 2009-06-28 22:48:15 +0100 (Sun, 28 Jun 2009) | 1 line More Decimal quote fixing; backport of r73642 ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/stdlib2.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst
index 8faa360..0d1d4c7 100644
--- a/Doc/tutorial/stdlib2.rst
+++ b/Doc/tutorial/stdlib2.rst
@@ -360,7 +360,7 @@ becomes significant if the results are rounded to the nearest cent::
>>> from decimal import *
>>> Decimal('0.70') * Decimal('1.05')
- Decimal("0.7350")
+ Decimal('0.7350')
>>> .70 * 1.05
0.73499999999999999
@@ -373,7 +373,7 @@ Exact representation enables the :class:`Decimal` class to perform modulo
calculations and equality tests that are unsuitable for binary floating point::
>>> Decimal('1.00') % Decimal('.10')
- Decimal("0.00")
+ Decimal('0.00')
>>> 1.00 % 0.10
0.09999999999999995
@@ -386,6 +386,6 @@ The :mod:`decimal` module provides arithmetic with as much precision as needed::
>>> getcontext().prec = 36
>>> Decimal(1) / Decimal(7)
- Decimal("0.142857142857142857142857142857142857")
+ Decimal('0.142857142857142857142857142857142857')