SyntaxFix
Write A Post
Hire A Developer
Questions
You want java.text.DecimalFormat.
DecimalFormat df = new DecimalFormat("0.00##"); String result = df.format(34.4959);