Math.round(X)
This function rounds the given number to the nearest integer (number with no fraction). Fractional values of .5 and above are rounded up.
Play around with the number in this example program to get a sense of how it works.