SyntaxFix
Write A Post
Hire A Developer
Questions
You can use a DecimalFormat, or String.format("%.2f", a);
String.format("%.2f", a);