Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The computation may consistently result in "NaN" if one or both of the inputs for weight and height are not valid numbers, or if the formula for calculating BMI is not correctly implemented. "NaN" stands for "Not a Number" and is returned when a math operation is performed on invalid input.