This documentation is archived and is not being maintained.

round Method 

Returns a supplied numeric expression rounded to the nearest integer.

function round(number : Number) : Number


Required. A numeric expression.

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.

Other Resources