I have a double value which needs to be formatted
NumberFormat dft = NumberFormat.getInstance();
dft.setMaximumFractionDigits(3);
dft.setRoundingMode(RoundingMode.UP);
Double n= Double.parseDouble(dft.format(xyz)); //1,733.211
I cannot format it because it has "," in it so how to remove it from n
.