JavaScript Math.round()

Math.round(x) returns the value of x rounded to its nearest integer: