Page 1 of 1

bmi calculator for al client

Posted: Fri Sep 24, 2010 6:05 am
by Evilina
#action {Your height is %1 feet, %2 inches, weight %3 pounds,}{#set feet %1;#set inches %2;#set weight %3;#set total_weight = weight * 703;#set total_inches = feet * 12 + inches;#set inches_2 = total_inches * total_inches;#set bmi = total_weight / inches_2}

I could of done this using a simpler math formula but I suck at math so had to break it down to something basic.

use #var bmi to see your current bmi

Re: bmi calculator for al client

Posted: Fri Sep 24, 2010 6:58 pm
by Tristan
Nice one

Re: bmi calculator for al client

Posted: Fri Sep 24, 2010 9:25 pm
by Evilina
btw I posted both bmi calculator scripts on wotmad forums Tristan, I did give you credit for your work.

Hope that's cool.

Re: bmi calculator for al client

Posted: Mon Sep 27, 2010 11:21 am
by Tristan
:) yeah that's nps, you gave me credit which is cool :)