Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-41205: Document Decimal power 0 to the 0 #21386

Merged
merged 5 commits into from
Jul 19, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bpo-41205: Add extra line
  • Loading branch information
srinivasreddy committed Jul 13, 2020
commit 4489ce53c085559a532db581a5cf5f693537bbf1
7 changes: 4 additions & 3 deletions Doc/library/decimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1355,9 +1355,10 @@ In addition to the three supplied contexts, new contexts can be created with the
must be integral. The result will be inexact unless ``y`` is integral and
the result is finite and can be expressed exactly in 'precision' digits.
The rounding mode of the context is used. Results are always correctly-rounded
in the Python version. ``Decimal(0) ** Decimal(0)`` results in
``InvalidOperation``, and if ``InvalidOperation`` is not trapped, then results in
``Decimal('NaN')``.
in the Python version.

``Decimal(0) ** Decimal(0)`` results in ``InvalidOperation``, and if ``InvalidOperation``
is not trapped, then results in ``Decimal('NaN')``.

.. versionchanged:: 3.3
The C module computes :meth:`power` in terms of the correctly-rounded
Expand Down