Co zrobić żeby kalkulator liczył z przecinkami
<script>
function licz()
{
document.ff.wyn.value = (((document.ff.l1.value * 1) - (document.ff.l4.value * 1)) + ((document.ff.l2.value * 1) - (document.ff.l4.value * 1))) * (document.ff.l3.value * 1) * (document.ff.l4.value * 1) * 2;
}
</script>
<form name="ff">Fundament - kalkulator w takcie realizacjiwpisz wymiary w metrach
szerokość<input name="l1" type="text">długość<input name="l2" type="text">wysokość<input name="l3" type="text">grubość ławy<input name="l4" type="text">potrzebujesz<input name="wyn" type="text">m3 betonu
<center><input value="LICZ" type="button"></center></form>