Commit 47e22f93 authored by Ezio Melotti's avatar Ezio Melotti

#15438: merge with 3.2.

parents 52e2dec8 7dddbb2b
...@@ -215,6 +215,10 @@ Power and logarithmic functions ...@@ -215,6 +215,10 @@ Power and logarithmic functions
``x`` is negative, and ``y`` is not an integer then ``pow(x, y)`` ``x`` is negative, and ``y`` is not an integer then ``pow(x, y)``
is undefined, and raises :exc:`ValueError`. is undefined, and raises :exc:`ValueError`.
Unlike the built-in ``**`` operator, :func:`math.pow` converts both
its arguments to type :class:`float`. Use ``**`` or the built-in
:func:`pow` function for computing exact integer powers.
.. function:: sqrt(x) .. function:: sqrt(x)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment