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

arjunsv3691
- 791
- 6
- 19