I am using this code:
DecimalFormat df = new DecimalFormat();
df.setMinimumFractionDigits(2);
df.setMaximumFractionDigits(2);
float a=(float) 15000.345;
Sytem.out.println(df.format(a));
I am getting this output:15,000.35
I don't want comma to be come in this output.
My output should be:15000.35
.
What is best way for getting this output in Java?