August 2006
Intermediate to advanced
1018 pages
34h 13m
English
Math.round( ): round to the nearest integer — ECMAScript v1
Math.round(x)x
Any 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