Changed all bitwise double tilde to floorTowardsZero function