Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16eb827 commit 871a334Copy full SHA for 871a334
1 file changed
Doc/library/functions.rst
@@ -1234,8 +1234,8 @@ are always available. They are listed here in alphabetical order.
1234
.. function:: round(number[, ndigits])
1235
1236
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)``.
+ the decimal point. If *ndigits* is omitted or is ``None``, it returns the
+ nearest integer to its input. Delegates to ``number.__round__(ndigits)``.
1239
1240
For the built-in types supporting :func:`round`, values are rounded to the
1241
closest multiple of 10 to the power minus *ndigits*; if two multiples are
0 commit comments