public static void main(String[] args) ... { long a=100011; long b=200022; Double d=new Double(b-a); DecimalFormat fmt = new DecimalFormat("##,###,###,###,##0.00"); System.out.println(fmt.format(d/100)); NumberFormat nf = NumberFormat.getCurrencyInstance(); System.out.println(nf.format(88888.88)); } 运行结果: 1,000.11¥88,888.88