Asked
Active
Viewed 372 times
1 Answers
0
Use DecimalFormatter to format the number of decimal points to display.
DecimalFormat decimalFormat = new DecimalFormat("#.00");
decimalFormat.format(bmi);
arjunsv3691
- 761
- 6
- 18