Docs for Issue 2819.

This commit is contained in:
Raymond Hettinger 2008-05-23 00:49:27 +00:00
parent 3a7305ed14
commit cc858ccc50
1 changed files with 6 additions and 0 deletions

View File

@ -103,6 +103,12 @@ Number-theoretic and representation functions:
Return the fractional and integer parts of *x*. Both results carry the sign of
*x*, and both are floats.
.. function:: sum(iterable)
Return an accurate floating point sum of values in the iterable. Avoids
loss of precision by tracking multiple intermediate partial sums. The
algorithm's accuracy depends on IEEE-754 arithmetic guarantees and the
typical case where the rounding mode is half-even.
.. function:: trunc(x)