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.
2 parents 6579502 + 871a334 commit bce9cbaCopy full SHA for bce9cba
1 file changed
Doc/library/functions.rst
@@ -1237,8 +1237,8 @@ are always available. They are listed here in alphabetical order.
1237
.. function:: round(number[, ndigits])
1238
1239
Return the floating point value *number* rounded to *ndigits* digits after
1240
- the decimal point. If *ndigits* is omitted, it returns the nearest integer
1241
- 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)``.
1242
1243
For the built-in types supporting :func:`round`, values are rounded to the
1244
closest multiple of 10 to the power minus *ndigits*; if two multiples are
0 commit comments