Math.round

Example 1:

var myMath = Math.round(2.345) // returns 2

Example 2:

var myMath = Math.round(2.567) // returns 3