Reverted ~~ to Math.floor().