Skip to content

Commit 5961b0e

Browse files
committed
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. ........
1 parent 7718e5e commit 5961b0e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Doc/library/decimal.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,9 +1218,12 @@ In addition to the three supplied contexts, new contexts can be created with the
12181218
- at least one of ``x`` or ``y`` must be nonzero
12191219
- ``modulo`` must be nonzero and have at most 'precision' digits
12201220

1221-
The result of ``Context.power(x, y, modulo)`` is identical to the result
1222-
that would be obtained by computing ``(x**y) % modulo`` with unbounded
1223-
precision, but is computed more efficiently. It is always exact.
1221+
The value resulting from ``Context.power(x, y, modulo)`` is
1222+
equal to the value that would be obtained by computing ``(x**y)
1223+
% modulo`` with unbounded precision, but is computed more
1224+
efficiently. The exponent of the result is zero, regardless of
1225+
the exponents of ``x``, ``y`` and ``modulo``. The result is
1226+
always exact.
12241227

12251228

12261229
.. method:: quantize(x, y)

0 commit comments

Comments
 (0)