Created
September 25, 2013 23:36
-
-
Save uhziel/6707742 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function bmi(w, h) | |
-- BMI 身体质量指数 用来衡量胖瘦和是否健康的一个标准 | |
-- 体重过低 <18.5 | |
-- 体重正常 18.5~23.9 | |
-- 超重 24.0~27.9 | |
-- 肥胖 ≥28 | |
-- http://zh.wikipedia.org/wiki/%E8%BA%AB%E9%AB%98%E9%AB%94%E9%87%8D%E6%8C%87%E6%95%B8 | |
-- w:体重 kg | |
-- h:身高 m | |
return w / (h * h) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment