Skip to content

Instantly share code, notes, and snippets.

@dawnerd
Created February 12, 2012 04:57
Show Gist options
  • Save dawnerd/1806445 to your computer and use it in GitHub Desktop.
Save dawnerd/1806445 to your computer and use it in GitHub Desktop.
var foo = Math.PI;
//Most common
Math.floor(foo);
//Double bitwise NOT
~~foo;
//Bitwise OR
foo | foo;
foo | 0;
//Bitwise AND
foo & foo;
//Bitwise shift
foo << 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment