zig.com Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Math.round()</h2>
<p>Math.round(x) returns the value of x rounded to its nearest integer:</p>
<p id="demo"></p>
<script>
  document.getElementById("demo").innerHTML = Math.round(4.5);
</script>
</body>
<!-- /js/tryit.asp?filename=tryjs_math_round Thu, 06 Feb 2025 18:15:25 GMT -->
</html>