Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Math.round

console.log(Math.round(5.95)); // output: 6

console.log(Math.round(5.23)); // output: 5

console.log(Math.round(-15.5)); // output: -15
Source by devswisdom.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
7+9 =