]> granicus.if.org Git - python/commitdiff
ceil and floor return ints in 3k.
authorGeorg Brandl <georg@python.org>
Sat, 5 Apr 2008 17:37:09 +0000 (17:37 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 5 Apr 2008 17:37:09 +0000 (17:37 +0000)
Doc/library/math.rst

index 55f793320e7f5ad6117c74b188f32afab22de102..f69c0a019881d5a3683cd3f939cbfd3c95ceeb6a 100644 (file)
@@ -26,9 +26,9 @@ Number-theoretic and representation functions:
 
 .. function:: ceil(x)
 
-   Return the ceiling of *x* as a float, the smallest integer value greater than
-   or equal to *x*. If *x* is not a float, delegates to ``x.__ceil__()``, which
-   should return an :class:`Integral` value.
+   Return the ceiling of *x*, the smallest integer greater than or equal to *x*.
+   If *x* is not a float, delegates to ``x.__ceil__()``, which should return an
+   :class:`Integral` value.
 
 
 .. function:: copysign(x, y)
@@ -44,9 +44,9 @@ Number-theoretic and representation functions:
 
 .. function:: floor(x)
 
-   Return the floor of *x* as a float, the largest integer value less than or
-   equal to *x*. If *x* is not a float, delegates to ``x.__floor__()``, which
-   should return an :class:`Integral` value.
+   Return the floor of *x*, the largest integer less than or equal to *x*.
+   If *x* is not a float, delegates to ``x.__floor__()``, which should return an
+   :class:`Integral` value.
 
 
 .. function:: fmod(x, y)
@@ -117,7 +117,6 @@ necessarily has no fractional bits.
 
 Power and logarithmic functions:
 
-
 .. function:: exp(x)
 
    Return ``e**x``.