diff options
author | Raymond Hettinger <python@rcn.com> | 2008-05-23 00:49:27 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-05-23 00:49:27 (GMT) |
commit | cc858ccc500cf1606f64fc6cc47ab8af230c89e6 (patch) | |
tree | 7b65e0e4e02630ec00516482dcbfbba3201137ea /Doc | |
parent | 3a7305ed14684a2fe2ed9ad7f91aae06dd81b520 (diff) | |
download | cpython-cc858ccc500cf1606f64fc6cc47ab8af230c89e6.zip cpython-cc858ccc500cf1606f64fc6cc47ab8af230c89e6.tar.gz cpython-cc858ccc500cf1606f64fc6cc47ab8af230c89e6.tar.bz2 |
Docs for Issue 2819.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/math.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 9bccf5d..b98f164 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -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) |