Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dfloatobject.c1538 double float_part; in float_as_integer_ratio_impl() local
1562float_part = frexp(self_double, &exponent); /* self_double == float_part * 2**exponent exac… in float_as_integer_ratio_impl()
1563 PyFPE_END_PROTECT(float_part); in float_as_integer_ratio_impl()
1565 for (i=0; i<300 && float_part != floor(float_part) ; i++) { in float_as_integer_ratio_impl()
1566 float_part *= 2.0; in float_as_integer_ratio_impl()
1573 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()