Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript quick float to integer

console.log(23.9 | 0);  // Result: 23
console.log(-23.9 | 0); // Result: -23
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #quick #float #integer
ADD COMMENT
Topic
Name
7+8 =