3 ms·Be careful with Math.floor on negative numbers. It rounds -1.1 to -2. You probably want the new Math.trunc.by BoppreH 4y agoBe careful with Math.floor on negative numbers. It rounds -1.1 to -2. You probably want the new Math.trunc.