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

/external/python/cpython2/Objects/
H A Dfloatobject.c1040 double wholepart; /* integral portion of x, rounded toward 0 */ local
1042 (void)modf(x, &wholepart);
1051 * then, e.g., wholepart=LONG_MAX+1 would yield true from the C
1052 * expression wholepart<=LONG_MAX, despite that wholepart is
1058 if ((double)LONG_MIN <= wholepart && wholepart < -(double)LONG_MIN) {
1059 const long aslong = (long)wholepart;
1062 return PyLong_FromDouble(wholepart);

Completed in 117 milliseconds