(original) (raw)
changeset: 103031:7108f2a708c9 branch: 3.5 parent: 103029:72651343be73 user: Raymond Hettinger python@rcn.com date: Sun Sep 04 11:28:56 2016 -0700 files: Doc/library/functions.rst description: Issue 27936: Update doc for round() to indicate that None is an allowable argument. diff -r 72651343be73 -r 7108f2a708c9 Doc/library/functions.rst --- a/Doc/library/functions.rst Sun Sep 04 11:17:28 2016 -0700 +++ b/Doc/library/functions.rst Sun Sep 04 11:28:56 2016 -0700 @@ -1234,8 +1234,8 @@ .. 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 /python@rcn.com