<html>
<body>
<p id="demo">Click the button to round different numbers upwards to the nearest integer.</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var a=Math.ceil(0.60);
var b=Math.ceil(0.40);
var c=Math.ceil(5);
var d=Math.ceil(5.1);
var e=Math.ceil(-5.1);
var f=Math.ceil(-5.9);
var x=document.getElementById("demo");
x.innerHTML=a + "<br>" + b + "<br>" + c + "<br>" + d + "<br>" + e + "<br>" + f;
}
</script>
</body>
</html>