]> granicus.if.org Git - python/commitdiff
Issue #21179: Fix description of 'round' function for numbers.Real.
authorMark Dickinson <dickinsm@gmail.com>
Wed, 9 Apr 2014 11:03:27 +0000 (07:03 -0400)
committerMark Dickinson <dickinsm@gmail.com>
Wed, 9 Apr 2014 11:03:27 +0000 (07:03 -0400)
Doc/library/stdtypes.rst

index b474114b103ec6cfb9778b36e464f4bc3e04bd14..9e236a5460444a516749741b4ef07b06df5d0c60 100644 (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* |        |
 +--------------------+------------------------------------+--------+