Back
How can I use String.format(format String,X) to format a double like follows???
2354548.235 -> 2,354,548.23
Thanks!
String.format("%1$,.2f", myDouble);
String.format automatically uses the default locale.
31k questions
32.8k answers
501 comments
693 users