Round

Round to nearest integer: Math.round(2.5)

Round to no more than 2 decimals: Math.round(num * 100) / 100