Commit 1e5a5c99 by Tu Nombre

Corrijo coma por punto en flotante

1 parent dde1121e
...@@ -46,7 +46,7 @@ function revisarConvergenciaAlineador (){ ...@@ -46,7 +46,7 @@ function revisarConvergenciaAlineador (){
const inputField = document.getElementById("alineadorEjeDelantero"); const inputField = document.getElementById("alineadorEjeDelantero");
const selectField = document.getElementById("alineadorEjeDelanteroTipo"); const selectField = document.getElementById("alineadorEjeDelanteroTipo");
try { try {
const value = parseFloat(inputField.value); const value = parseFloat(inputField.value.replace(",", "."));
if (!isNaN(value)) { if (!isNaN(value)) {
selectField.value = value >= 0 ? "Convergente" : "Divergente"; selectField.value = value >= 0 ? "Convergente" : "Divergente";
} }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!