mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
#3191: fix round() docs and docstring.
This commit is contained in:
parent
13b6d0df63
commit
809ddaaafb
2 changed files with 9 additions and 5 deletions
|
@ -1726,8 +1726,8 @@ PyDoc_STRVAR(round_doc,
|
|||
"round(number[, ndigits]) -> floating point number\n\
|
||||
\n\
|
||||
Round a number to a given precision in decimal digits (default 0 digits).\n\
|
||||
This returns an int when called with one argument, otherwise a float.\n\
|
||||
Precision may be negative.");
|
||||
This returns an int when called with one argument, otherwise a the\n\
|
||||
same type as the number. ndigits may be negative.");
|
||||
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue