From: Mariatta Date: Tue, 28 Mar 2017 00:02:29 +0000 (-0700) Subject: bpo-29677: DOC: clarify documentation for `round` (GH-357) (GH-862) X-Git-Tag: v3.6.2rc1~277 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F867%2Fhead;p=thirdparty%2FPython%2Fcpython.git bpo-29677: DOC: clarify documentation for `round` (GH-357) (GH-862) (cherry picked from commit 6003db7db5fec545c01923c198a5fdfca5a91538) --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 64c9569766cc..2c0ea71c47f4 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::