summaryrefslogtreecommitdiffstats
path: root/Doc/library/math.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-02-23 02:55:24 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-02-23 02:55:24 (GMT)
commitcc5ea62e48afa0faf6b3aa0014245622b313b887 (patch)
tree48b731826d281b53e20c39a799414920ff25e239 /Doc/library/math.rst
parent5c72b3f067b3cb4f5c4f8a26df426304c3b094ed (diff)
parent739d5497c07b5350acc0f79878e4661eda4865d3 (diff)
downloadcpython-cc5ea62e48afa0faf6b3aa0014245622b313b887.zip
cpython-cc5ea62e48afa0faf6b3aa0014245622b313b887.tar.gz
cpython-cc5ea62e48afa0faf6b3aa0014245622b313b887.tar.bz2
#15438: merge with 3.2.
Diffstat (limited to 'Doc/library/math.rst')
-rw-r--r--Doc/library/math.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 2f2558b..b69d6c6 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -215,6 +215,10 @@ Power and logarithmic functions
``x`` is negative, and ``y`` is not an integer then ``pow(x, y)``
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)