顯示浮點數取到小數第2位, 可以使用String.format() 方法. 例子: textView.setText("answer:" + String.format("%.2f", floatingNumber));.
確定! 回上一頁