System.out.printf("%.2f", value);. The %.2f syntax tells Java to return your variable (value) with 2 decimal places (.2) in decimal ...
確定! 回上一頁