summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMariatta <Mariatta@users.noreply.github.com>2017-03-28 00:09:21 (GMT)
committerGitHub <noreply@github.com>2017-03-28 00:09:21 (GMT)
commit8994f36287b068e8ea9a9230fc90eda72bf5fff0 (patch)
tree3f50587dfe6008a6709b7fa5975c17bfdcce8e68 /Doc/library
parentcb09f421c88ff4c0bb8282ef6ca49d5ce2ccfc2c (diff)
downloadcpython-8994f36287b068e8ea9a9230fc90eda72bf5fff0.zip
cpython-8994f36287b068e8ea9a9230fc90eda72bf5fff0.tar.gz
cpython-8994f36287b068e8ea9a9230fc90eda72bf5fff0.tar.bz2
bpo-29677: DOC: clarify documentation for `round` (GH-357) (GH-863)
(cherry picked from commit 6003db7db5fec545c01923c198a5fdfca5a91538)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/functions.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 2f14949..15413cb 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1241,7 +1241,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::