我想根据存储在另一个变量double“ i”中的数字来格式化Java中的double变量。假设如果i = 3,那么我要格式化 decimals_text = String.format("%."+String.
確定! 回上一頁