I have the following script
function slabCalc(form) {
l = eval(form.length.value);
w = eval(form.width.value);
d = eval(form.depth.value);
dinches = eval(d/12);
cu = eval((l*w*dinches)/27);
form.cu.value = cu
}
That calculates amount of concrete need by using form vars. The only problem I have is that the result is display with to many digits after the decimal. I only want to display 2.
Any help would be great
function slabCalc(form) {
l = eval(form.length.value);
w = eval(form.width.value);
d = eval(form.depth.value);
dinches = eval(d/12);
cu = eval((l*w*dinches)/27);
form.cu.value = cu
}
That calculates amount of concrete need by using form vars. The only problem I have is that the result is display with to many digits after the decimal. I only want to display 2.
Any help would be great