Here\'s the relevant code. I\'ve confirmed with the alert that the correct number is saved, it\'s just not being changed to 2 decimal places.
if ($(this).a
document.getElementById("EDTVALOR").addEventListener("change", function() { this.value = this.value.replace(",", "."); this.value = parseFloat(this.value).toFixed(2); if (this.value < 0) { this.value = 0; } this.value = this.value.replace(".", ","); this.value = this.value.replace("NaN", "0"); });