Skip to content

Commit 8994f36

Browse files
authored
bpo-29677: DOC: clarify documentation for round (GH-357) (GH-863)
(cherry picked from commit 6003db7)
1 parent cb09f42 commit 8994f36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/functions.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,8 @@ are always available. They are listed here in alphabetical order.
12411241
closest multiple of 10 to the power minus *ndigits*; if two multiples are
12421242
equally close, rounding is done toward the even choice (so, for example,
12431243
both ``round(0.5)`` and ``round(-0.5)`` are ``0``, and ``round(1.5)`` is
1244-
``2``). The return value is an integer if called with one argument,
1244+
``2``). Any integer value is valid for *ndigits* (positive, zero, or
1245+
negative). The return value is an integer if called with one argument,
12451246
otherwise of the same type as *number*.
12461247

12471248
.. note::

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy