type cast ints to floats for rank calculation