註解
e := 2.7182818284 // Euler's number/*
BMI formula
BMI = weight / (height * height)
weight unit : kg
height unit : m
*/
fn bmi(weight f32, height f32) f32 {
return weight / (height * height)
}Last updated
e := 2.7182818284 // Euler's number/*
BMI formula
BMI = weight / (height * height)
weight unit : kg
height unit : m
*/
fn bmi(weight f32, height f32) f32 {
return weight / (height * height)
}Last updated