使用java.math.BigDecimal 2. ... 二、使用DecimalFormat,保留小數點後兩位. public static String format2(double value) { DecimalFormat df = new ...
確定! 回上一頁