getLeanBodyMass static method

String getLeanBodyMass(
  1. double weight,
  2. double bfr, {
  3. int fractionDigits = 1,
})

去脂体重 @param: weight(kg) @param: bfr(体脂率 body fat rate) @result: (kg)

Implementation

static String getLeanBodyMass(
  double weight,
  double bfr, {
  int fractionDigits = 1,
}) {
  double fatMass = weight * bfr / 100;
  return (weight - fatMass).toStringAsFixed(fractionDigits);
}