I need to make .tofixed(2)
work with commas and not with dot
as a decimal separator.
In case, when I calculate the final result is "501.60" and the certain would be "501.60".
document.getElementById('resultado'+tipo+'_'+index).value = (Valor1 * Valor2).toFixed(2);