diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-06-28 21:48:15 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-06-28 21:48:15 (GMT) |
commit | 11c4941b5416fcf396d590c3f264a07715c1e943 (patch) | |
tree | 2581ea4092cdb323521af15cc397a55f0b3f965a | |
parent | e007860b8b3609ce0bc62b1780efaa06241520bd (diff) | |
download | cpython-11c4941b5416fcf396d590c3f264a07715c1e943.zip cpython-11c4941b5416fcf396d590c3f264a07715c1e943.tar.gz cpython-11c4941b5416fcf396d590c3f264a07715c1e943.tar.bz2 |
More Decimal quote fixing; backport of r73642
-rw-r--r-- | Doc/tutorial/stdlib2.rst | 6 |
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') |