JavaScript Math

The Math.round() Method

Math.round() rounds a number to the nearest integer: