[Python-checkins] cpython (2.7): Issue 15985: fix round argument names in documentation. Thanks Chris Jerdonek.
mark.dickinson
python-checkins at python.org
Thu Sep 20 21:58:05 CEST 2012
http://hg.python.org/cpython/rev/e4037dd73877
changeset: 79068:e4037dd73877
branch: 2.7
parent: 79062:1a61c56050e4
user: Mark Dickinson <mdickinson at enthought.com>
date: Thu Sep 20 20:57:37 2012 +0100
summary:
Issue 15985: fix round argument names in documentation. Thanks Chris Jerdonek.
files:
Doc/library/functions.rst | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1192,13 +1192,14 @@
Added the possibility to write a custom :meth:`__reversed__` method.
-.. function:: round(x[, n])
+.. function:: round(number[, ndigits])
- Return the floating point value *x* rounded to *n* digits after the decimal
- point. If *n* is omitted, it defaults to zero. The result is a floating point
- number. Values are rounded to the closest multiple of 10 to the power minus
- *n*; if two multiples are equally close, rounding is done away from 0 (so. for
- example, ``round(0.5)`` is ``1.0`` and ``round(-0.5)`` is ``-1.0``).
+ Return the floating point value *number* rounded to *ndigits* digits after
+ the decimal point. If *ndigits* is omitted, it defaults to zero. The result
+ is a floating point number. Values are rounded to the closest multiple of
+ 10 to the power minus *ndigits*; if two multiples are equally close,
+ rounding is done away from 0 (so. for example, ``round(0.5)`` is ``1.0`` and
+ ``round(-0.5)`` is ``-1.0``).
.. note::
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list