We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e43f76 commit ffa7d82Copy full SHA for ffa7d82
Doc/library/functions.rst
@@ -1558,7 +1558,9 @@ are always available. They are listed here in alphabetical order.
1558
returns ``100``, but ``pow(10, -2)`` returns ``0.01``. For a negative base of
1559
type :class:`int` or :class:`float` and a non-integral exponent, a complex
1560
result is delivered. For example, ``pow(-9, 0.5)`` returns a value close
1561
- to ``3j``.
+ to ``3j``. Whereas, for a negative base of type :class:`int` or :class:`float`
1562
+ with an integral exponent, a float result is delivered. For example,
1563
+ ``pow(-9, 2.0)`` returns ``81.0``.
1564
1565
For :class:`int` operands *base* and *exp*, if *mod* is present, *mod* must
1566
also be of integer type and *mod* must be nonzero. If *mod* is present and
0 commit comments