How can I format, according to Locale.getDefault() of device, a float greater than 999.
For decimal format currently I'm using this:
DecimalFormat decim = new DecimalFormat("#.##");
tv.setText(decim.format(someFloat));
And for thousand separator:
tv.setText(String.format(Locale.getDefault(), "%,d", someInt));
How can I combine both if I want to display 3.678,66
(or 3,678.66
- depending of Locale.getDefault())?