java输出double_java 输出指定小数位数double值
// The 0 symbol shows a digit or 0 if no digit presentNumberFormat formatter = new DecimalFormat("000000");String s = formatter.format(-1234.567); // -001235// notice that the number was rounded up//...