Ver originalvar result = parseInt(totalres3);/** alternativa **/var result = totalres3.replace(",", ".");