~pythonregexp2.7/python/issue2636

« back to all changes in this revision

Viewing changes to Doc/library/math.rst

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-05-24 16:05:21 UTC
  • mfrom: (39021.1.401 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080524160521-1xenj7p6u3wb89et
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
   Return the fractional and integer parts of *x*.  Both results carry the sign of
104
104
   *x*, and both are floats.
105
105
 
 
106
.. function:: sum(iterable)
 
107
 
 
108
   Return an accurate floating point sum of values in the iterable.  Avoids
 
109
   loss of precision by tracking multiple intermediate partial sums.  The
 
110
   algorithm's accuracy depends on IEEE-754 arithmetic guarantees and the
 
111
   typical case where the rounding mode is half-even.
106
112
 
107
113
.. function:: trunc(x)
108
114
 
300
306
   platform and libm implementation. It's usually :exc:`ValueError` for *EDOM*
301
307
   and :exc:`OverflowError` for errno *ERANGE*.
302
308
 
303
 
   ..versionchanged:: 2.6
 
309
   .. versionchanged:: 2.6
304
310
      In earlier versions of Python the outcome of an operation with NaN as
305
311
      input depended on platform and libm implementation.
306
312