]> granicus.if.org Git - python/commitdiff
#4914: trunc is in math.
authorGeorg Brandl <georg@python.org>
Sun, 18 Jan 2009 10:48:16 +0000 (10:48 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 18 Jan 2009 10:48:16 +0000 (10:48 +0000)
Doc/library/stdtypes.rst

index f6ec040843bbf62a7c4e7a9ac748cf0b5f7ae45f..b383a40829c107da6b90398cc601a5a98fdf48b2 100644 (file)
@@ -375,7 +375,7 @@ All :class:`numbers.Real` types (:class:`int`, :class:`long`, and
 +--------------------+------------------------------------+--------+
 | Operation          | Result                             | Notes  |
 +====================+====================================+========+
-| ``trunc(x)``       | *x* truncated to Integral          |        |
+| ``math.trunc(x)``  | *x* truncated to Integral          |        |
 +--------------------+------------------------------------+--------+
 | ``round(x[, n])``  | *x* rounded to n digits,           |        |
 |                    | rounding half to even. If n is     |        |