DecimalFormat df = new DecimalFormat( "###############0.00 ");// 16位整数位,两小数位String data=df.format(“要转换的double”);