Math.floor replaced with ~~