對float、double處理成整數. Math.ceil();. Math.floor();. Math.rint();. Math.round();. public static void main(String[] args) {. double a = Math.ceil(2.414);.
確定! 回上一頁