-3
I own this section, but on the console it appears 64, not 64.9. How I can add in the right way?
var carga_adicional = parseFloat('25,00');
var carga_parceiro = parseFloat('39,90');
var adicionais = parseFloat(carga_adicional + carga_parceiro);
console.log(adicionais);
You’ll have to make one
replace(',', '.')
before parse, as commas are not recognized as decimal separators.– Andre
your question is javascript and not jquery.
– Raizant