May 2011
Intermediate to advanced
1096 pages
40h 54m
English
Math.round() — round to the nearest integer
Math.round(x)
xAny number.
The integer closest to x.
Math.round() rounds its
argument up or down to the nearest integer. It rounds .5 up. For
example, it rounds 2.5 to 3 and rounds −2.5 to −2.
Read now
Unlock full access