In Java, there are a few ways to round float or double to 2 ... HALF_EVEN System.out.println("salary : " + df.format(input)); //1205.64 df.
確定! 回上一頁