Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9d9ab3d

Browse files
committed
#15438: merge with 3.3.
2 parents 607240c + cc5ea62 commit 9d9ab3d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/library/math.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ Power and logarithmic functions
215215
``x`` is negative, and ``y`` is not an integer then ``pow(x, y)``
216216
is undefined, and raises :exc:`ValueError`.
217217

218+
Unlike the built-in ``**`` operator, :func:`math.pow` converts both
219+
its arguments to type :class:`float`. Use ``**`` or the built-in
220+
:func:`pow` function for computing exact integer powers.
221+
218222

219223
.. function:: sqrt(x)
220224

0 commit comments

Comments
 (0)