Get rid of unnecessary math.Floor since int cast floors factor later