changeset: 79068:e4037dd73877 branch: 2.7 parent: 79062:1a61c56050e4 user: Mark Dickinson date: Thu Sep 20 20:57:37 2012 +0100 files: Doc/library/functions.rst description: Issue 15985: fix round argument names in documentation. Thanks Chris Jerdonek. diff -r 1a61c56050e4 -r e4037dd73877 Doc/library/functions.rst --- a/Doc/library/functions.rst Thu Sep 20 09:48:07 2012 +0300 +++ b/Doc/library/functions.rst Thu Sep 20 20:57:37 2012 +0100 @@ -1192,13 +1192,14 @@ Added the possibility to write a custom :meth:`__reversed__` method. -.. function:: round(x[, n]) +.. function:: round(number[, ndigits]) - Return the floating point value *x* rounded to *n* digits after the decimal - point. If *n* is omitted, it defaults to zero. The result is a floating point - number. Values are rounded to the closest multiple of 10 to the power minus - *n*; if two multiples are equally close, rounding is done away from 0 (so. for - example, ``round(0.5)`` is ``1.0`` and ``round(-0.5)`` is ``-1.0``). + Return the floating point value *number* rounded to *ndigits* digits after + the decimal point. If *ndigits* is omitted, it defaults to zero. The result + is a floating point number. Values are rounded to the closest multiple of + 10 to the power minus *ndigits*; if two multiples are equally close, + rounding is done away from 0 (so. for example, ``round(0.5)`` is ``1.0`` and + ``round(-0.5)`` is ``-1.0``). .. note::

AltStyle によって変換されたページ (->オリジナル) /