how to cast a float as an int in 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