有兩種類型的浮點類型,float和double,分別表示單精度和雙精度數。 ... float var3; var3 = var1 + var2; System.out.printf("10 + 3.1f = %.2f\n", ...
確定! 回上一頁