Microsoft JScript
round Method |
Language Reference
Version 1 |

Rounds a supplied numeric expression to the nearest integer.

Math.round(number)The

numberargument is the value to be rounded to the nearest integer.

If the decimal portion ofnumberis 0.5 or greater, the return value is equal to the smallest integer greater thannumber. Otherwise,roundreturns the largest integer less than or equal tonumber.

Comments