Math.round()- rounds to the nearest integer (if the decimal is 0.5 or greater it rounds up, otherwise it rounds down.)
Math.ceil()- rounds up to the next integer.
Math.floor()- rounds down.
Let's do some examples:
var x = 2.71828182845;