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

Skip to content

Commit 2a03373

Browse files
committed
ceil and floor return ints in 3k.
1 parent cd76c27 commit 2a03373

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

Doc/library/math.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Number-theoretic and representation functions:
2626

2727
.. function:: ceil(x)
2828

29-
Return the ceiling of *x* as a float, the smallest integer value greater than
30-
or equal to *x*. If *x* is not a float, delegates to ``x.__ceil__()``, which
31-
should return an :class:`Integral` value.
29+
Return the ceiling of *x*, the smallest integer greater than or equal to *x*.
30+
If *x* is not a float, delegates to ``x.__ceil__()``, which should return an
31+
:class:`Integral` value.
3232

3333

3434
.. function:: copysign(x, y)
@@ -44,9 +44,9 @@ Number-theoretic and representation functions:
4444

4545
.. function:: floor(x)
4646

47-
Return the floor of *x* as a float, the largest integer value less than or
48-
equal to *x*. If *x* is not a float, delegates to ``x.__floor__()``, which
49-
should return an :class:`Integral` value.
47+
Return the floor of *x*, the largest integer less than or equal to *x*.
48+
If *x* is not a float, delegates to ``x.__floor__()``, which should return an
49+
:class:`Integral` value.
5050

5151

5252
.. function:: fmod(x, y)
@@ -117,7 +117,6 @@ necessarily has no fractional bits.
117117

118118
Power and logarithmic functions:
119119

120-
121120
.. function:: exp(x)
122121

123122
Return ``e**x``.

0 commit comments

Comments
 (0)