Home
last modified time | relevance | path

Searched refs:wholepart (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Objects/
Dfloatobject.c895 double wholepart; /* integral portion of x, rounded toward 0 */ in float___trunc___impl() local
897 (void)modf(x, &wholepart); in float___trunc___impl()
910 if (LONG_MIN < wholepart && wholepart < LONG_MAX) { in float___trunc___impl()
911 const long aslong = (long)wholepart; in float___trunc___impl()
914 return PyLong_FromDouble(wholepart); in float___trunc___impl()
/external/python/cpython2/Objects/
Dfloatobject.c1039 double wholepart; /* integral portion of x, rounded toward 0 */ in float_trunc() local
1041 (void)modf(x, &wholepart); in float_trunc()
1057 if ((double)LONG_MIN <= wholepart && wholepart < -(double)LONG_MIN) { in float_trunc()
1058 const long aslong = (long)wholepart; in float_trunc()
1061 return PyLong_FromDouble(wholepart); in float_trunc()