[Python-checkins] cpython (2.7): Issue #21179: Fix description of 'round' function for numbers.Real.

mark.dickinson python-checkins at python.org
Wed Apr 9 13:04:14 CEST 2014


http://hg.python.org/cpython/rev/7ec8c4555772
changeset:   90194:7ec8c4555772
branch:      2.7
parent:      90179:9f0e10dc7722
user:        Mark Dickinson <dickinsm at gmail.com>
date:        Wed Apr 09 07:03:27 2014 -0400
summary:
  Issue #21179: Fix description of 'round' function for numbers.Real.

files:
  Doc/library/stdtypes.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -399,8 +399,8 @@
 | ``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* |        |
 +--------------------+------------------------------------+--------+

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list