File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1329,11 +1329,12 @@ are always available. They are listed here in alphabetical order.
1329
1329
equally close, rounding is done toward the even choice (so, for example,
1330
1330
both ``round(0.5) `` and ``round(-0.5) `` are ``0 ``, and ``round(1.5) `` is
1331
1331
``2 ``). Any integer value is valid for *ndigits * (positive, zero, or
1332
- negative). The return value is an integer if called with one argument,
1333
- otherwise of the same type as *number *.
1332
+ negative). The return value is an integer if *ndigits * is omitted or
1333
+ ``None ``.
1334
+ Otherwise the return value has the same type as *number *.
1334
1335
1335
- For a general Python object ``number ``, ``round(number, ndigits) `` delegates to
1336
- ``number.__round__(ndigits) ``.
1336
+ For a general Python object ``number ``, ``round `` delegates to
1337
+ ``number.__round__ ``.
1337
1338
1338
1339
.. note ::
1339
1340
You can’t perform that action at this time.
0 commit comments