Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

math.floor

// The Math.floor() function returns the largest integer 
// less than or equal to a given number.

console.log(Math.floor(9.8));

// expected output: 10
Source by devswisdom.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
9+2 =