You can use the printf method, for example: System.out.printf("%.2f", value);. The %.2f syntax tells Java to return your variable (value) ...
確定! 回上一頁