how to get round figure of sum value
now its showing like this http://www.koolfree.com/ImageUpload/uploads/1380114018.jpg
and i want like that http://www.koolfree.com/ImageUpload/uploads/1380160965.jpg
please help me to fix this issue thanks
<script type="text/javascript"><!--
function updatesum() {
document.form.sum.value = (document.form.sum1.value -0) / (document.form.sum2.value -0);
}
//--></script>
<body>
<form name="form" >
Enter a number:
<input name="sum1" onChange="updatesum()" />
and another number:
<input name="sum2" onChange="updatesum()" />
Their sum is:
<input name="sum" readonly style="border:0px;">
</form>
</body>