Searched refs:float_part (Results 1 – 2 of 2) sorted by relevance
1538 double float_part; in float_as_integer_ratio_impl() local1562 …float_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()
1712 double float_part; in float_as_integer_ratio() local1744 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()