function totalrunningtime(){
var sum = 0;
var qty = document.getElementById("cutterprodqty").value;
$(".cutterrumnoofmin").each(function() {
//add only if the value is number
if(!isNaN(this.value) && this.value.length!=0) {
sum += parseFloat(this.value);
}
});
//.toFixed() method will roundoff the final sum to 2 decimal places
$("#cutterrunningtimetotal").html(sum);
document.getElementById("cutterrunningtimetotal").value = sum;
var total = (sum/qty);
var t = total.toFixed(3);
$("#cutterspeed").val(t);
}
When i input on textfields ex. 420/600 the answer is 0.700, when I checked in calculator the answer is 0.7
Please help out, many thanks :)