使用 NumberFormat ,保留小数点后两位. public static String format3(double value) { NumberFormat nf = NumberFormat.getNumberInstance(); nf.
確定! 回上一頁