Health Form Bug Mislabeled a 190 lb User as Obese Due to Unit Input Errors
A developer's corporate wellness health-check form wrongly classified a tester weighing 190 lb and standing 5'11" as obese, when the correct BMI is about 26.5, which is overweight. The discrepancy traced back to input handling rather than the formula itself: a height field expecting centimeters accepted values like 1.75 and produced absurd results, while an imperial field accepted feet entered as a decimal (5.11 instead of 5 feet 11 inches). The fix involved rejecting implausible heights and replacing the decimal input with separate integer fields for feet and inches. The developer said the corrected form now matches reference calculations for test cases.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in