Right click this window and select "view source" in order to copy the source for this script.
JavaScript Math Round
View Source...
Returns the value of variable x to the nearest integer. If the values decimal value is .5 or greater the next highest integer value is returned otherwise the next lowest integer is returned.