Comparing different techniques to truncate float-point numbers in JavaScript (version: 0)
Math.trunc(original)
~~original; // Double negation
original & -1; // Bitwise AND with -1
original | 0; // Bitwise OR with 0
original ^ 0; // Bitwise XOR with 0
original >> 0; // Bitwise shifting by 0
Comparing performance of: Math.trunc() vs Double negation vs Bitwise AND with -1 vs Bitwise OR with 0 vs Bitwise XOR with 0 vs Bitwise shifting by 0