summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-07 10:03:06 (GMT)
committerGitHub <noreply@github.com>2024-06-07 10:03:06 (GMT)
commitffa7d82a04254491b91f41cc0de04b490bab1dc6 (patch)
treee0571e1537c79ab598fd5f9e3b57523103d1df13 /Doc
parent1e43f76b7689536233c018ee51d6d5b9d96cf34f (diff)
downloadcpython-ffa7d82a04254491b91f41cc0de04b490bab1dc6.zip
cpython-ffa7d82a04254491b91f41cc0de04b490bab1dc6.tar.gz
cpython-ffa7d82a04254491b91f41cc0de04b490bab1dc6.tar.bz2
[3.13] gh-110383: Clarify "non-integral" wording in pow() docs (GH-119688) (#120206)
(cherry picked from commit 6646a9da26d12fc54263b22dd2916a2f710f1db7) Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/functions.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index c07b104..b75b6df 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1558,7 +1558,9 @@ are always available. They are listed here in alphabetical order.
returns ``100``, but ``pow(10, -2)`` returns ``0.01``. For a negative base of
type :class:`int` or :class:`float` and a non-integral exponent, a complex
result is delivered. For example, ``pow(-9, 0.5)`` returns a value close
- to ``3j``.
+ to ``3j``. Whereas, for a negative base of type :class:`int` or :class:`float`
+ with an integral exponent, a float result is delivered. For example,
+ ``pow(-9, 2.0)`` returns ``81.0``.
For :class:`int` operands *base* and *exp*, if *mod* is present, *mod* must
also be of integer type and *mod* must be nonzero. If *mod* is present and