<html>
<body>
<p>Click the button to round the number 1.4 upward to its nearest integer.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = Math.ceil(1.4);
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_ceil by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:02:20 GMT -->
</html>