mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
#15438: merge with 3.3.
This commit is contained in:
commit
9d9ab3d8fb
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue