quick float to integer js code example
Example: javascript quick float to integer
console.log(23.9 | 0); // Result: 23
console.log(-23.9 | 0); // Result: -23
console.log(23.9 | 0); // Result: 23
console.log(-23.9 | 0); // Result: -23