SyntaxFix
Write A Post
Hire A Developer
Questions
public String formatStr(float val) { return String.format(Locale.CANADA, "%,.2f", val); } formatStr(2524.2) // 2,254.20