I found this variable declaration in an open source project:

Code:
var index = ~~(i/BUFFER_LENGTH);
What does the "~~" mean? I can't find answer on Google.

Thanks