diff options
author | Raymond Hettinger <python@rcn.com> | 2016-09-04 18:28:56 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-09-04 18:28:56 (GMT) |
commit | 871a3340b7d72a5ef783ace7baa5cd8428d226d2 (patch) | |
tree | ef7809217877cd6597f0240bedf06b2525f2e4ab /Doc | |
parent | 16eb827b33cc271eebd521246ebefd4d49470df8 (diff) | |
download | cpython-871a3340b7d72a5ef783ace7baa5cd8428d226d2.zip cpython-871a3340b7d72a5ef783ace7baa5cd8428d226d2.tar.gz cpython-871a3340b7d72a5ef783ace7baa5cd8428d226d2.tar.bz2 |
Issue 27936: Update doc for round() to indicate that None is an allowable argument.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index efa5bd3..5af9fe4 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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 |