I’m in the workspace for the Python control flow assignment.
I added the following code to return the amount needed to lower BMI in order to be in the healthy range. I added "print(bmi_value) to double check that the correct number was being entered as an argument in the function.
elif (bmi_value >= 25) and (bmi_value <= 30):
newloss = (bmi_value - 24.9)
print("Your BMI is in the overweight range. To lower your cost, you should lower your BMI by " + str(newloss) + “.”)
the return contains
Your BMI is in the overweight range. To lower your cost, you should lower your BMI by 1.3000000000000007.
So… What is wrong with my newloss variable definition? Why is 26.2 - 24.9 not returning 1.3, but instead 1.300000000000(ish)7?