Hi i am facing a problem.
please any body help me
<script type="text/javascript">
$(function(){
$("#timegap").change(function(){
var totalreg=parseInt($("#totalreg").val()); // (500)
var numberofcounselor=parseInt($("#couid").val()); //(8)
var timegap=parseInt($("#timegap").val()); //(11)
var appsperhour=Math.ceil(60/timegap);
alert(appsperhour);
});
})
</script>
The out put is without using ceil is 5.45. But using ceil i am getting 6. But in my project i ant 5.4 means get 5 and
5.6 means get 6. any body help me
out put is