I currently use the following code to print a double:
return String.format(\"%.2f\", someDouble);
This works well, except that Java uses my
You can use NumberFormat and DecimalFormat.
Take a look at this link from Java Tutorials LocaleSpecific Formatting
The section titled Locale-Sensitive Formatting is what you need.