2017-10-21 63 views

回答

0

使用DecimalFormatter格式化的小数点后的数字显示。

DecimalFormat decimalFormat = new DecimalFormat("#.00"); 
decimalFormat.format(bmi);