hottrio.blogg.se

Bmi to weight converter
Bmi to weight converter







document.getElementById("answer").value = output If (output = 18.5 & output = 25 & output 30)ĭocument.getElementById("comment").innerText = "Overweight" Var BMI = Math.round(weight / Math.pow(height, 2) * 10000) ĭocument.getElementById("output").innerText = Math.round(BMI * 100) / 100 var BMI = weight /Math.pow(height, 2)*10000 Var weightunits = document.getElementById("weightunits").value Var weight = Number(document.getElementById("weight").value) Var heightunits = document.getElementById("heightunits").value Var height = Number(document.getElementById("height").value) If (output=18.5 & output=25 & output30)ĭocument.getElementById("comment").value = "Overweight" ĭocument.getElementById("answer").value = output Var weightunits=document.getElementById("weightunits").value Var weight=Number(document.getElementById("weight").value) Var heightunits=document.getElementById("heightunits").value Var height=Number(document.getElementById("height").value) Please can someone help me fix my calculator, I know there are problems with my if statements? Thanks. There should be a message shown underneath: your bmi is:, and then the message underneath is this means you are: according to the BMI calculated above. Please seek further advice from your GP.I am trying to create a basic HTML/JavaScript BMI calculator. If you're suffering from an eating disorder, the BMI calculator results do not apply. Your can use your BMI result as a starting point for further discussion with your GP about your weight and your general health.įind out more in How your GP can help and check out the Change4Life website for practical tips on staying healthy as a family. However, the BMI is a relatively straightforward and convenient method of assessing someone's weight.

  • adults who lose muscle as they get older may fall in the "healthy weight" range even though they may be carrying excess fat.
  • very muscular adults and athletes may be classed "overweight" or "obese" even though their body fat is low.
  • The adult BMI does not take into account age, gender or muscle mass. The BMI can't tell the difference between excess fat, muscle, or bone. Your BMI can tell you if you're carrying too much weight but it can't tell if you're carrying too much fat. If you're concerned about your child's weight, contact your GP who may be able to refer you to your local healthy lifestyle programme for children, young people and families. Measuring waist size is not routinely advised for children because it doesn't take their height into account. For example, a girl on the 75th centile is heavier than 75 out of 100 other girls her age. Find out more in very overweight childrenĪ child's BMI is expressed as a "centile" to show how their BMI compares to children who took part in national surveys. If you're concerned about your child's weight, see your GP.

    #Bmi to weight converter how to#

    Get tips on how to encourage your child to be more active and eat well

    bmi to weight converter

  • healthy weight: between the 2nd and 91st centiles.
  • underweight: on the 2nd centile or below.
  • The BMI calculator works out if a child or young person is: Obese children are thought to be at increased risk of a variety of health conditions, and they're also more likely to be overweight or obese as adults.

    bmi to weight converter

    For children and young people aged two to 18, the BMI calculator takes into account age and gender as well as height and weight.







    Bmi to weight converter