SyntaxFix
Write A Post
Hire A Developer
Questions
I guess that you need a formatted output.
System.out.printf("%.2f",d);