24.121. Math.round( ): round to the nearest integerECMAScript v124.121.1. SynopsisMath.round(x) 24.121.1.1. Arguments
24.121.1.2. ReturnsThe integer closest to x. 24.121.2. 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. |