AvailabilityJavaScript 1.0; JScript 1.0; ECMAScript v1 SynopsisMath.round(x) Arguments
ReturnsThe integer closest to x. DescriptionMath.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. |