Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cryout-serious-slider domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/projects/shum.com.au/wp-includes/functions.php on line 6121
BMI calculator – Shum Library

BMI calculator

Introduction

Body mass index is a popular indicator of weight health based on height.

BMI calculator

This form can help you calculate your BMI:

Mass (in kilograms):
Height (in centimeters):

Based on your given information:

Your BMI is: [exec]
$mass = $_GET[‘mass’];
$height = $_GET[‘height’];
$bmi = number_format($mass/pow($height/100,2) ,2);
echo ‘‘.$bmi.’. ‘;

if ($bmi<16) { echo 'You are severely underweight.’; }
else if ($bmi<18.5) { echo 'You are underweight.’; }
else if ($bmi<25) { echo 'You are normal.’; }
else if ($bmi<30) { echo 'You are overweight.’; }
else { echo ‘You are obese.’; }
[/exec]

The ideal weight range for your height is between: [exec]
$mass = $_GET[‘mass’];
$height = $_GET[‘height’];
$bmi = number_format($mass/pow($height/100,2) ,2);
echo ‘‘.number_format(18.5*pow($height/100,2),0).’kg and ‘.number_format(25*pow($height/100,2),0).’kg‘;
[/exec]

Example height/weight combinations: