NumberFormat nf = new DecimalFormat("#0.00"); NumberFormat nf = NumberFormat.getInstance();
#0.00
: 0.00, 0.90, 10.92, 100.23 등의 형태DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols(); decimalFormatSymbols.setGroupingSeparator('-'); DecimalFormat decimalFormat = new DecimalFormat("####,####", decimalFormatSymbols); decimalFormat.format(123456789L); // 1-2345-6789