JavaScript Math round() Method
JavaScript Math round() method is used to round a number to the nearest integer. If the number is less than or equal to 7.49, it will be rounded to 7, and if it is 7.50 or greater, it will be rounded to 8. In the case of a negative number, it behaves differently. Syntax Math.round(x) … Read more