-3

how to round off the BMI value to 2/3 decimal place?

Sweety
  • 1

1 Answers1

0

Use DecimalFormatter to format the number of decimal points to display.

DecimalFormat decimalFormat = new DecimalFormat("#.00");
decimalFormat.format(bmi);
arjunsv3691
  • 791
  • 6
  • 19