Issue #21179: Fix description of 'round' function for numbers.Real.
This commit is contained in:
parent
ffc34e8311
commit
05bbb8cbcf
|
@ -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* | |
|
||||
+--------------------+------------------------------------+--------+
|
||||
|
|
Loading…
Reference in New Issue