I have the number '19,476.86' in a text file and I would like to use it to perform math operations such as addition, subtraction, multiplication, how do I do it?
String s = "19.476,90";
DecimalFormat formateador = new DecimalFormat ("#.00");
Number resultado = formateador.parse(s);
System.out.println("Resultado: " + resultado);
Output:
Resultado: 19.476
I want to use the full number and not have the ',80' left out