The ; symbol is used to specify an alternate pattern for negative values
public class Main{ public static void main(String[] argv) throws Exception{ NumberFormat formatter = new DecimalFormat("#;(#)"); String s = formatter.format(-1234.567); // (1235) sysout }}