Revert 64451.
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 0d40d17..60a5e84 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1451,11 +1451,8 @@
 PyNumber_ToBase(PyObject *n, int base)
 {
 	PyObject *res = NULL;
-	PyObject *index;
+	PyObject *index = PyNumber_Index(n);
 
-	if (PyFloat_Check(n))
-		return _float_to_base(n, base);
-	index = PyNumber_Index(n);
 	if (!index)
 		return NULL;
 	if (PyLong_Check(index))