使用 NumberFormat ,保留小數點後兩位. public static String format3(double value) { NumberFormat nf = NumberFormat.getNumberInstance(); nf.
確定! 回上一頁