Changeset 388 for python/vendor/current/Include/floatobject.h
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Include/floatobject.h
r2 r388 21 21 #define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type) 22 22 #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 23 29 24 30 #ifdef Py_NAN … … 122 128 Py_ssize_t format_spec_len); 123 129 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. */ 133 PyAPI_FUNC(PyObject *) _Py_double_round(double x, int ndigits); 134 135 136 124 137 #ifdef __cplusplus 125 138 }
Note:
See TracChangeset
for help on using the changeset viewer.