#consol.log("Day-1");JavaScript Function ,Math.round()

#consol.log("Day-1");JavaScript Function ,Math.round()

JavaScript Math.round

Table of contents

No heading

No headings in the article.

Math.round() is a static JavaScript Function that is accessed by Math class and The function rounds the number to its nearest integer with two decimal places. if decimal part >0.5. it's rounded to a higher absolute value or f decimal part < 0.5. it's rounded to lower absolute value

#snippet

Math.round(5.5)

//output - 6