~~ instead of Math.floor for a not-great reason: It's easier to type. However, it is also easier to mistype ~, which will convert the number into an integer and invert the bits. (I need the second ~ to flip the bits back while keeping the free integer conversion.)