pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/dac8a3a15647d016842e2ae7284cefa27ce5e838

bpo-41205: Document Decimal power 0 to the 0 (GH-21386) · python/cpython@dac8a3a · GitHub
Skip to content

Commit dac8a3a

Browse files
bpo-41205: Document Decimal power 0 to the 0 (GH-21386)
Co-authored-by: Mark Dickinson <dickinsm@gmail.com> (cherry picked from commit 10e4664) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
1 parent 700cb66 commit dac8a3a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/decimal.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,9 @@ In addition to the three supplied contexts, new contexts can be created with the
13571357
The rounding mode of the context is used. Results are always correctly-rounded
13581358
in the Python version.
13591359

1360+
``Decimal(0) ** Decimal(0)`` results in ``InvalidOperation``, and if ``InvalidOperation``
1361+
is not trapped, then results in ``Decimal('NaN')``.
1362+
13601363
.. versionchanged:: 3.3
13611364
The C module computes :meth:`power` in terms of the correctly-rounded
13621365
:meth:`exp` and :meth:`ln` functions. The result is well-defined but

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy