Double value with two decimal using NumberFormat
Thanks Friends I solve it .... :)
Below is line of code
NumberFormat formatter = NumberFormat.getInstance(Locale.US);
formatter.setMaximumFractionDigits(2);
formatter.setMinimumFractionDigits(2);
System.out.prinitln(formatter.format(53508));
and output is
53,508.00
try this
NumberFormat f = NumberFormat.getNumberInstance(Locale.US);
f.setMinimumFractionDigits(2);
String s = f.format(53508);