Hi,
I'm trying to use DecimalFormat to format numbers according to the current locale. I don't understand why I don't have the output that I expect.
The code I'm using looks like this :
DecimalFormat df = new DecimalFormat("#.##0");
String output = df.format(5.0)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.