Java tutorial
Format for CANADA locale import java.text.NumberFormat; import java.util.Locale; public class Main { public static void main(String[] argv) throws Exception { Locale locale = Locale.CANADA; String string = NumberFormat.getNumberInstance(locale).format(-1234.56); System.out.println(string); } } //-1,234.56