numpy floor returns the largest int within the array From https://docs.scipy.org/doc/numpy/reference/generated/numpy.floor.html
>>> a = np.array([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) >>> np.floor(a) array([-2., -2., -1., 0., 1., 1., 2.])