This commit is contained in:
Raymond Hettinger 2016-09-04 11:29:13 -07:00
commit bce9cbaf98
1 changed files with 2 additions and 2 deletions

View File

@ -1237,8 +1237,8 @@ are always available. They are listed here in alphabetical order.
.. function:: round(number[, ndigits]) .. function:: round(number[, ndigits])
Return the floating point value *number* rounded to *ndigits* digits after Return the floating point value *number* rounded to *ndigits* digits after
the decimal point. If *ndigits* is omitted, it returns the nearest integer the decimal point. If *ndigits* is omitted or is ``None``, it returns the
to its input. Delegates to ``number.__round__(ndigits)``. nearest integer to its input. Delegates to ``number.__round__(ndigits)``.
For the built-in types supporting :func:`round`, values are rounded to the For the built-in types supporting :func:`round`, values are rounded to the
closest multiple of 10 to the power minus *ndigits*; if two multiples are closest multiple of 10 to the power minus *ndigits*; if two multiples are