Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 871a334

Browse files
committed
Issue 27936: Update doc for round() to indicate that None is an allowable argument.
1 parent 16eb827 commit 871a334

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,8 +1234,8 @@ are always available. They are listed here in alphabetical order.
12341234
.. function:: round(number[, ndigits])
12351235

12361236
Return the floating point value *number* rounded to *ndigits* digits after
1237-
the decimal point. If *ndigits* is omitted, it returns the nearest integer
1238-
to its input. Delegates to ``number.__round__(ndigits)``.
1237+
the decimal point. If *ndigits* is omitted or is ``None``, it returns the
1238+
nearest integer to its input. Delegates to ``number.__round__(ndigits)``.
12391239

12401240
For the built-in types supporting :func:`round`, values are rounded to the
12411241
closest multiple of 10 to the power minus *ndigits*; if two multiples are

0 commit comments

Comments
 (0)