Ignore:
Timestamp:
Mar 19, 2014, 11:11:30 AM (11 years ago)
Author:
dmik
Message:

python: Update vendor to 2.7.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/vendor/current/Include/floatobject.h

    r2 r388  
    2121#define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
    2222#define PyFloat_CheckExact(op) (Py_TYPE(op) == &PyFloat_Type)
     23
     24/* The str() precision PyFloat_STR_PRECISION is chosen so that in most cases,
     25   the rounding noise created by various operations is suppressed, while
     26   giving plenty of precision for practical use. */
     27
     28#define PyFloat_STR_PRECISION 12
    2329
    2430#ifdef Py_NAN
     
    122128                                               Py_ssize_t format_spec_len);
    123129
     130/* Round a C double x to the closest multiple of 10**-ndigits.  Returns a
     131   Python float on success, or NULL (with an appropriate exception set) on
     132   failure.  Used in builtin_round in bltinmodule.c. */
     133PyAPI_FUNC(PyObject *) _Py_double_round(double x, int ndigits);
     134
     135
     136
    124137#ifdef __cplusplus
    125138}
Note: See TracChangeset for help on using the changeset viewer.