how to change string to double on java android studio code example
Example 1: transformer un string en double java
String number = "123,321";
double value = Double.parseDouble( number.replace(",",".") );
Example 2: transformer un string en double java
String doubleAsString = "23.23";
BigDecimal price = new BigDecimal(doubleAsString);
BigDecimal total = price.plus(anotherPrice);