Topic: How to calculate BMI

Hello,
How to calculate BMI (standard formule) and the (new formula) in script? std Formule is : weight / length * lenght. Example 65 kilo / (1,70 x 1,70 meter) = BMI 22,5 value. New more accurate formula is : New BMI: 1.3 * weight(kg) / height(m) ^2.5
Thanks in advance

Re: How to calculate BMI

1.3 * w / Power(h, 2.5)

Re: How to calculate BMI

Thanks vovka

Re: How to calculate BMI

Hello,

How to implement the power function in script or via using calculated field? Example pls
Thanks in advance

Re: How to calculate BMI

function BMI( w:double; h:double):double;
begin
  result := 1.3 * w / Power( h, 2.5);
end;

SQLite also supports this function.
https://www.sqlite.org/lang_mathfunc.html

Визуальное программирование: блог и телеграм-канал.

Re: How to calculate BMI

Thanks K245