#4914: trunc is in math.

This commit is contained in:
Georg Brandl 2009-01-18 10:48:16 +00:00
parent 79f722da6c
commit bb550c99cb

View file

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