How can I use NumberFormat to format a double value for a given Locale (default locale is sufficient) and for a given number of decima
Adapted from Customizing Formats,
public void localizedFormat(double value,Locale loc ) {
NumberFormat nf = NumberFormat.getNumberInstance(loc);
DecimalFormat df = (DecimalFormat)nf;
df.applyPattern("###,###.00");
String output = df.format(value);
}
This function should give you the required formatting.