-1
<script>function calcular() {
var d1 = document.getElementById('diametro1').value;
var d2 = document.getElementById('diametro2').value;
var w1 = 42,305 / Math.sqrt(d1) ;
var w2 = 76,63 / Math.sqrt(d2) ;;
document.getElementById('w1').innerHTML = "Resultado: "+parseFloat(w1.toFixed(8));
document.getElementById('w2').innerHTML = "Resultado: "+parseFloat(w2.toFixed(8));
}
</script>
Javascript numbers have no comma.
– Sam