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/6646a9da26d12fc54263b22dd2916a2f710f1db7

97560d244c08.css" /> gh-110383: Clarify "non-integral" wording in pow() docs (#119688) · python/cpython@6646a9d · GitHub
Skip to content

Commit 6646a9d

Browse files
authored
gh-110383: Clarify "non-integral" wording in pow() docs (#119688)
1 parent d5ba4fc commit 6646a9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/functions.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,9 @@ are always available. They are listed here in alphabetical order.
15611561
returns ``100``, but ``pow(10, -2)`` returns ``0.01``. For a negative base of
15621562
type :class:`int` or :class:`float` and a non-integral exponent, a complex
15631563
result is delivered. For example, ``pow(-9, 0.5)`` returns a value close
1564-
to ``3j``.
1564+
to ``3j``. Whereas, for a negative base of type :class:`int` or :class:`float`
1565+
with an integral exponent, a float result is delivered. For example,
1566+
``pow(-9, 2.0)`` returns ``81.0``.
15651567

15661568
For :class:`int` operands *base* and *exp*, if *mod* is present, *mod* must
15671569
also be of integer type and *mod* must be nonzero. If *mod* is present and

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