Issue #21179: Fix description of 'round' function for numbers.Real.

This commit is contained in:
Mark Dickinson 2014-04-09 07:03:27 -04:00
parent ffc34e8311
commit 05bbb8cbcf
1 changed files with 2 additions and 2 deletions

View File

@ -399,8 +399,8 @@ All :class:`numbers.Real` types (:class:`int`, :class:`long`, and
| ``math.trunc(x)`` | *x* truncated to Integral | |
+--------------------+------------------------------------+--------+
| ``round(x[, n])`` | *x* rounded to n digits, | |
| | rounding half to even. If n is | |
| | omitted, it defaults to 0. | |
| | rounding ties away from zero. If n | |
| | is omitted, it defaults to 0. | |
+--------------------+------------------------------------+--------+
| ``math.floor(x)`` | the greatest integral float <= *x* | |
+--------------------+------------------------------------+--------+