Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Math Object round Method

Rounds a supplied numeric expression to the nearest integer.

Syntax: JScript Math Object round Method

Math.round(number)

Arguments: JScript Math Object round Method

number

The value to be rounded to the nearest integer.

Remarks: JScript Math Object round Method

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.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.