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.
1 parent 7410dd1 commit c4fbcdcCopy full SHA for c4fbcdc
1 file changed
Doc/library/functions.rst
@@ -972,6 +972,13 @@ are always available. They are listed here in alphabetical order.
972
The return value is an integer if called with one argument, otherwise of the
973
same type as *x*.
974
975
+ .. note::
976
+
977
+ The behavior of :func:`round` for floats can be surprising: for example,
978
+ ``round(2.675, 2)`` gives ``2.67`` instead of the expected ``2.68``.
979
+ This is not a bug: it's a result of the fact that most decimal fractions
980
+ can't be represented exactly as a float. See :ref:`tut-fp-issues` for
981
+ more information.
982
983
.. function:: set([iterable])
984
:noindex:
0 commit comments