diff options
| author | Gerrit Holl <gerrit.holl@gmail.com> | 2017-03-27 23:15:20 +0100 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2017-03-28 00:15:20 +0200 |
| commit | 6003db7db5fec545c01923c198a5fdfca5a91538 (patch) | |
| tree | 728cca9e32d505dae63ee829920fb410be7a581b /Doc/library/functions.rst | |
| parent | d67a103702cf57de90a62c90f7ae969c23d96218 (diff) | |
| download | cpython-git-6003db7db5fec545c01923c198a5fdfca5a91538.tar.gz | |
bpo-29677: DOC: clarify documentation for `round` (#357)
* DOC: clarify documentation for `round`
Clarified that `round` can take a negative value for *ndigits*.
* DOC: remove trailing whitespace in previous commit
remove trailing whitespace in previous commit
Diffstat (limited to 'Doc/library/functions.rst')
| -rw-r--r-- | Doc/library/functions.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 64c9569766..2c0ea71c47 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1262,7 +1262,8 @@ are always available. They are listed here in alphabetical order. closest multiple of 10 to the power minus *ndigits*; if two multiples are equally close, rounding is done toward the even choice (so, for example, both ``round(0.5)`` and ``round(-0.5)`` are ``0``, and ``round(1.5)`` is - ``2``). The return value is an integer if called with one argument, + ``2``). Any integer value is valid for *ndigits* (positive, zero, or + negative). The return value is an integer if called with one argument, otherwise of the same type as *number*. .. note:: |
