Home
last modified time | relevance | path

Searched refs:ob_fval (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Include/
Dfloatobject.h17 double ob_fval; member
51 #define PyFloat_AS_DOUBLE(op) (((PyFloatObject *)(op))->ob_fval)
/external/python/cpython2/Include/
Dfloatobject.h16 double ob_fval; member
56 #define PyFloat_AS_DOUBLE(op) (((PyFloatObject *)(op))->ob_fval)
/external/python/cpython2/Objects/
Dfloatobject.c152 op->ob_fval = fval; in PyFloat_FromDouble()
338 char *tmp = PyOS_double_to_string(v->ob_fval, 'g', in PyFloat_AsString()
348 char * tmp = PyOS_double_to_string(v->ob_fval, 'r', 0, in PyFloat_AsReprString()
360 buf = PyOS_double_to_string(v->ob_fval, in float_print()
364 buf = PyOS_double_to_string(v->ob_fval, in float_print()
632 return _Py_HashDouble(v->ob_fval); in float_hash()
943 return PyFloat_FromDouble(-v->ob_fval); in float_neg()
949 return PyFloat_FromDouble(fabs(v->ob_fval)); in float_abs()
955 return v->ob_fval != 0.0; in float_nonzero()
1287 v = PyFloat_FromDouble(((PyFloatObject *)v)->ob_fval); in float_float()
[all …]
Dabstract.c1810 return PyFloat_FromDouble(po->ob_fval);
/external/python/cpython3/Objects/
Dfloatobject.c129 op->ob_fval = fval; in PyFloat_FromDouble()
539 return _Py_HashDouble(v->ob_fval); in float_hash()
812 return PyFloat_FromDouble(-v->ob_fval); in float_neg()
818 return PyFloat_FromDouble(fabs(v->ob_fval)); in float_abs()
824 return v->ob_fval != 0.0; in float_bool()
1074 v = PyFloat_FromDouble(((PyFloatObject *)v)->ob_fval); in float_float()
1628 ((PyFloatObject *)newobj)->ob_fval = ((PyFloatObject *)tmp)->ob_fval; in float_subtype_new()
1641 return Py_BuildValue("(d)", ((PyFloatObject *)self)->ob_fval); in float___getnewargs___impl()
/external/python/cpython3/Doc/extending/
Dnewtypes_tutorial.rst84 double ob_fval;