SyntaxFix
Write A Post
Hire A Developer
Questions
Here is the simplest way to get there:
String number = "10987655.876"; double result = Double.parseDouble(number); System.out.println(String.format("%,.2f",result));
output: 10,987,655.88