mirror of https://github.com/python/cpython
ceil and floor return ints in 3k.
This commit is contained in:
parent
cd76c274c6
commit
2a033735bb
|
@ -26,9 +26,9 @@ Number-theoretic and representation functions:
|
||||||
|
|
||||||
.. function:: ceil(x)
|
.. function:: ceil(x)
|
||||||
|
|
||||||
Return the ceiling of *x* as a float, the smallest integer value greater than
|
Return the ceiling of *x*, the smallest integer greater than or equal to *x*.
|
||||||
or equal to *x*. If *x* is not a float, delegates to ``x.__ceil__()``, which
|
If *x* is not a float, delegates to ``x.__ceil__()``, which should return an
|
||||||
should return an :class:`Integral` value.
|
:class:`Integral` value.
|
||||||
|
|
||||||
|
|
||||||
.. function:: copysign(x, y)
|
.. function:: copysign(x, y)
|
||||||
|
@ -44,9 +44,9 @@ Number-theoretic and representation functions:
|
||||||
|
|
||||||
.. function:: floor(x)
|
.. function:: floor(x)
|
||||||
|
|
||||||
Return the floor of *x* as a float, the largest integer value less than or
|
Return the floor of *x*, the largest integer less than or equal to *x*.
|
||||||
equal to *x*. If *x* is not a float, delegates to ``x.__floor__()``, which
|
If *x* is not a float, delegates to ``x.__floor__()``, which should return an
|
||||||
should return an :class:`Integral` value.
|
:class:`Integral` value.
|
||||||
|
|
||||||
|
|
||||||
.. function:: fmod(x, y)
|
.. function:: fmod(x, y)
|
||||||
|
@ -117,7 +117,6 @@ necessarily has no fractional bits.
|
||||||
|
|
||||||
Power and logarithmic functions:
|
Power and logarithmic functions:
|
||||||
|
|
||||||
|
|
||||||
.. function:: exp(x)
|
.. function:: exp(x)
|
||||||
|
|
||||||
Return ``e**x``.
|
Return ``e**x``.
|
||||||
|
|
Loading…
Reference in New Issue