SyntaxFix
Write A Post
Hire A Developer
Questions
Also try dojo.number which has built-in localization support. It is a much closer analog to Java's NumberFormat/DecimalFormat