Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dfloatobject.c1517 double float_part; in float_as_integer_ratio_impl() local
1540float_part = frexp(self_double, &exponent); /* self_double == float_part * 2**exponent exac… in float_as_integer_ratio_impl()
1542 for (i=0; i<300 && float_part != floor(float_part) ; i++) { in float_as_integer_ratio_impl()
1543 float_part *= 2.0; in float_as_integer_ratio_impl()
1550 numerator = PyLong_FromDouble(float_part); in float_as_integer_ratio_impl()
/external/python/cpython2/Objects/
Dfloatobject.c1712 double float_part; in float_as_integer_ratio() local
1744 float_part = frexp(self, &exponent); /* self == float_part * 2**exponent exactly */ in float_as_integer_ratio()
1745 PyFPE_END_PROTECT(float_part); in float_as_integer_ratio()
1747 for (i=0; i<300 && float_part != floor(float_part) ; i++) { in float_as_integer_ratio()
1748 float_part *= 2.0; in float_as_integer_ratio()
1755 numerator = PyLong_FromDouble(float_part); in float_as_integer_ratio()