SyntaxFix
Write A Post
Hire A Developer
Questions
as described in Formatter class, you need to declare precision. %.2f in your case.
%.2f