]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 15985: fix round argument names in documentation. Thanks Chris Jerdonek.
authorMark Dickinson <mdickinson@enthought.com>
Thu, 20 Sep 2012 19:57:37 +0000 (20:57 +0100)
committerMark Dickinson <mdickinson@enthought.com>
Thu, 20 Sep 2012 19:57:37 +0000 (20:57 +0100)
Doc/library/functions.rst

index 37dd5f3a787b8ba3bc633093288f44f265fa7b45..a1f7534b43b4c5b4b7cdf95e42a78f9706759383 100644 (file)
@@ -1192,13 +1192,14 @@ available.  They are listed here in alphabetical order.
       Added the possibility to write a custom :meth:`__reversed__` method.
 
 
-.. function:: round(x[, n])
-
-   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``).
+.. function:: round(number[, ndigits])
+
+   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::