mirror of
https://github.com/python/cpython.git
synced 2025-11-15 00:00:00 +00:00
Merged revisions 73642 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k ........ r73642 | mark.dickinson | 2009-06-28 22:24:42 +0100 (Sun, 28 Jun 2009) | 1 line Fix incorrect quote type on Decimal examples ........
This commit is contained in:
parent
9307839ee9
commit
a1713bdfed
1 changed files with 2 additions and 2 deletions
|
|
@ -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::
|
calculations and equality tests that are unsuitable for binary floating point::
|
||||||
|
|
||||||
>>> Decimal('1.00') % Decimal('.10')
|
>>> Decimal('1.00') % Decimal('.10')
|
||||||
Decimal("0.00")
|
Decimal('0.00')
|
||||||
>>> 1.00 % 0.10
|
>>> 1.00 % 0.10
|
||||||
0.09999999999999995
|
0.09999999999999995
|
||||||
|
|
||||||
|
|
@ -386,6 +386,6 @@ The :mod:`decimal` module provides arithmetic with as much precision as needed::
|
||||||
|
|
||||||
>>> getcontext().prec = 36
|
>>> getcontext().prec = 36
|
||||||
>>> Decimal(1) / Decimal(7)
|
>>> Decimal(1) / Decimal(7)
|
||||||
Decimal("0.142857142857142857142857142857142857")
|
Decimal('0.142857142857142857142857142857142857')
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue