Commit bb550c99 authored by Georg Brandl's avatar Georg Brandl

#4914: trunc is in math.

parent 79f722da
...@@ -375,7 +375,7 @@ All :class:`numbers.Real` types (:class:`int`, :class:`long`, and ...@@ -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 | |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment