Microsoft® JScript™
round Method
 Language Reference 
Version 1 

See Also                  Applies To


Description
Rounds a supplied numeric expression to the nearest integer.
Syntax
Math.round(number)

The number argument is the value to be rounded to the nearest integer.

Remarks
If the decimal portion of number is 0.5 or greater, the return value is equal to the smallest integer greater than number. Otherwise, round returns the largest integer less than or equal to number.


© 1997 by Microsoft Corporation. All rights reserved.

Comments: