diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-02-22 15:42:18 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-02-22 15:42:18 (GMT) |
commit | f9793a36a490a2702da5b3055b757dc9882bbaa8 (patch) | |
tree | 88b38b1bc59d9a636fab25eaae497fb86b094bf4 /Doc/library/decimal.rst | |
parent | 19219b41e84f636b4d5c3f19eac19db9302e7956 (diff) | |
download | cpython-f9793a36a490a2702da5b3055b757dc9882bbaa8.zip cpython-f9793a36a490a2702da5b3055b757dc9882bbaa8.tar.gz cpython-f9793a36a490a2702da5b3055b757dc9882bbaa8.tar.bz2 |
Merged revisions 78314 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r78314 | mark.dickinson | 2010-02-22 15:41:48 +0000 (Mon, 22 Feb 2010) | 9 lines
Merged revisions 78312 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78312 | mark.dickinson | 2010-02-22 15:40:28 +0000 (Mon, 22 Feb 2010) | 1 line
Clarify description of three-argument pow for Decimal types: the exponent of the result is always 0.
........
................
Diffstat (limited to 'Doc/library/decimal.rst')
-rw-r--r-- | Doc/library/decimal.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst index 77769cd..a482417 100644 --- a/Doc/library/decimal.rst +++ b/Doc/library/decimal.rst @@ -1215,9 +1215,12 @@ In addition to the three supplied contexts, new contexts can be created with the - at least one of ``x`` or ``y`` must be nonzero - ``modulo`` must be nonzero and have at most 'precision' digits - The result of ``Context.power(x, y, modulo)`` is identical to the result - that would be obtained by computing ``(x**y) % modulo`` with unbounded - precision, but is computed more efficiently. It is always exact. + The value resulting from ``Context.power(x, y, modulo)`` is + equal to the value that would be obtained by computing ``(x**y) + % modulo`` with unbounded precision, but is computed more + efficiently. The exponent of the result is zero, regardless of + the exponents of ``x``, ``y`` and ``modulo``. The result is + always exact. .. method:: quantize(x, y) |