Search
The Math.round method rounds a number to its nearest integer.
Math.round
For example, 2.4 is rounded to 2:
2.4
2
2.65 is rounded to 3:
2.65
3
2.5 is rounded to 3:
2.5