diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 02:55:48 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 02:55:48 (GMT) |
commit | 9d9ab3d8fbc0a3d2dd74869c040b9e234e34a55c (patch) | |
tree | 4ffaf5e278459f7f5f8c59a1edf69f8e643d6856 /Doc | |
parent | 607240c3be2582c6c030b56372b917f270db5b1b (diff) | |
parent | cc5ea62e48afa0faf6b3aa0014245622b313b887 (diff) | |
download | cpython-9d9ab3d8fbc0a3d2dd74869c040b9e234e34a55c.zip cpython-9d9ab3d8fbc0a3d2dd74869c040b9e234e34a55c.tar.gz cpython-9d9ab3d8fbc0a3d2dd74869c040b9e234e34a55c.tar.bz2 |
#15438: merge with 3.3.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/math.rst | 4 |
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) |