<html>
<body>
<p>Click the button to round the number 1.6 downward to its nearest integer.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = Math.floor(1.6);
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_floor by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:30 GMT -->
</html>