Possible Duplicate:
What is the “double tilde” (~~) operator in JavaScript?
I found this snip of code in a node.js library's source. What effect does ~~
have on the input
variable?
inArray[3] = ~~input;
It's also used in other ways:
return ~~ ((a - b) / 864e5 / 7 + 1.5);