convert float to number in javascript 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