To format double to two decimal places, utilize the format() function of java.util.Formatter. This function is the same with System.out.printf. For example:.
確定! 回上一頁