JavaScript Math Round() Function
JavaScript round() function return the nearest integer value of rounded value.
Example
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript Math.round function</title>
</head>
<body>
<script type="text/javascript">
document.write(Math.round(4.60) + "<br />");
document.write(Math.round(8.32) + "<br />");
document.write(Math.round(0.96) + "<br />");
document.write(Math.round(0.49) + "<br />");
document.write(Math.round(-6.49) + "<br />");
document.write(Math.round(-2.80));
</script>
</body>
</html>
Example Result