]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue 27936: Update doc for round() to indicate that None is an allowable argument.
authorRaymond Hettinger <python@rcn.com>
Sun, 4 Sep 2016 18:28:56 +0000 (11:28 -0700)
committerRaymond Hettinger <python@rcn.com>
Sun, 4 Sep 2016 18:28:56 +0000 (11:28 -0700)
Doc/library/functions.rst

index efa5bd38a250e4ff36e5f03bfcdc1522e13f9463..5af9fe4e790cd98ead584460c17ae96c1b30bd1b 100644 (file)
@@ -1234,8 +1234,8 @@ are always available.  They are listed here in alphabetical order.
 .. function:: round(number[, ndigits])
 
    Return the floating point value *number* rounded to *ndigits* digits after
-   the decimal point.  If *ndigits* is omitted, it returns the nearest integer
-   to its input.  Delegates to ``number.__round__(ndigits)``.
+   the decimal point.  If *ndigits* is omitted or is ``None``, it returns the
+   nearest integer to its input.  Delegates to ``number.__round__(ndigits)``.
 
    For the built-in types supporting :func:`round`, values are rounded to the
    closest multiple of 10 to the power minus *ndigits*; if two multiples are