Remove slow array copy from math.floor()