Share via


round Method (JScript 5.6) 

Returns a supplied numeric expression rounded to the nearest integer.


Math.round(number) 

Remarks

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

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.

Requirements

Version 1

Applies To: Math Object (JScript 5.6)

See Also

Reference

random Method (JScript 5.6)