Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Math.floor

console.log(Math.floor(5.95)); // output: 5

console.log(Math.floor(-11.23)); // output: -12

console.log(Math.floor(9.78)); // output: 9
Source by devswisdom.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
9+4 =