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