]> granicus.if.org Git - python/commitdiff
Manually merge r67868 from 2.6 branch.
authorGeorg Brandl <georg@python.org>
Sat, 3 Jan 2009 22:05:22 +0000 (22:05 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 3 Jan 2009 22:05:22 +0000 (22:05 +0000)
Doc/library/stdtypes.rst

index 7192b1e399ad9536a7a07dc0129f987fe4309130..732478ee62a2d41bb9bfdae5e20eb616a93267f7 100644 (file)
@@ -338,15 +338,13 @@ Notes:
       module: math
       single: floor() (in module math)
       single: ceil() (in module math)
+      single: trunc() (in module math)      
       pair: numeric; conversions
-      pair: C; language
 
-   Conversion from floating point to (long or plain) integer may round or
-   truncate as in C; see functions :func:`math.floor` and :func:`math.ceil` for
-   well-defined conversions.
-
-   .. deprecated:: 2.6
-      Instead, convert floats to long explicitly with :func:`trunc`.
+   Conversion from floats using :func:`int` or :func:`long` truncates toward
+   zero like the related function, :func:`math.trunc`.  Use the function
+   :func:`math.floor` to round downward and :func:`math.ceil` to round
+   upward.
 
 (3)
    See :ref:`built-in-funcs` for a full description.