Created
March 24, 2015 16:10
-
-
Save vanrez-nez/9c86ccf59315837e107c to your computer and use it in GitHub Desktop.
Bitwise Operations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isOdd(number) { | |
return !!(number & 1); | |
} | |
// Floor Float aka cast to Int | |
var n = 1.9 | 0; // -> 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment