<html>
<head>
<title>JavaScript Math round() Method</title>
</head>
<body>
<script type="text/javascript">
var roundvalue = Math.round(0.7);
document.write("First Test Value : " + roundvalue
);
var roundvalue = Math.round(21.8);
document.write("<br />Second Test Value : " +
roundvalue);
var roundvalue = Math.round(50.3);
document.write("<br />Third Test Value : " +
roundvalue);
var roundvalue = Math.round(-10.2);
document.write("<br />Fourth Test Value : " +
roundvalue);
</script>
</body>
</html>