Kaydet (Commit) 05bbb8cb authored tarafından Mark Dickinson's avatar Mark Dickinson

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

üst ffc34e83
...@@ -399,8 +399,8 @@ All :class:`numbers.Real` types (:class:`int`, :class:`long`, and ...@@ -399,8 +399,8 @@ All :class:`numbers.Real` types (:class:`int`, :class:`long`, and
| ``math.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 ties away from zero. If n | |
| | omitted, it defaults to 0. | | | | is omitted, it defaults to 0. | |
+--------------------+------------------------------------+--------+ +--------------------+------------------------------------+--------+
| ``math.floor(x)`` | the greatest integral float <= *x* | | | ``math.floor(x)`` | the greatest integral float <= *x* | |
+--------------------+------------------------------------+--------+ +--------------------+------------------------------------+--------+
......
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