summaryrefslogtreecommitdiff
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2015-04-15 16:10:59 -0400
committerSteve Dower <steve.dower@microsoft.com>2015-04-15 16:10:59 -0400
commitcb39d1f466eeecbec969f50a5df609eb0a863084 (patch)
treecd4fd87d2cc51a15730a5e061075a5da8e069b9b /Doc/library/functions.rst
parent807b80d4ec9d9dd2c0f5e6a4bf07caa7c90625e1 (diff)
downloadcpython-git-cb39d1f466eeecbec969f50a5df609eb0a863084.tar.gz
Issue 19933: Provide default argument for ndigits in round. Patch by Vajrasky Kok.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 456dd09821..e982ceb0b9 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1225,8 +1225,8 @@ are always available. They are listed here in alphabetical order.
.. function:: round(number[, ndigits])
Return the floating point value *number* rounded to *ndigits* digits after
- the decimal point. If *ndigits* is omitted, it defaults to zero. Delegates
- to ``number.__round__(ndigits)``.
+ the decimal point. If *ndigits* is omitted, it returns the nearest integer
+ to its input. Delegates to ``number.__round__(ndigits)``.
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