Rounds a number to the nearest integer.
The number to round.
The nearest integer to the given number.
round(3.5); // returns 4round(2.49); // returns 2round(-2.5); // returns -2 Copy
round(3.5); // returns 4round(2.49); // returns 2round(-2.5); // returns -2
Rounds a number to the nearest integer.