![]() |
Bmi
I'm script some super secret funny script that I'll post later but I need for the player to calculate there BMI so I went to the "Massive Encyclopedia Online" Which Is Kinda Irritating because I can't say the name of the site do to the rule. Anyways the formula is weight/height^2 then multiply by 703, but when I do this I get some outlandish number which is definitely not BMI. Weight is in pounds and height is in inches
BMI = Body Mass Index, btw Anyone know a real formula for BMI? |
BMI = (weight*703)/height²
I can't post the reference site though, PM me if you'd like to know. |
Afraid this doesnt work, I used a BMI calculator site and input this
height 6'4" = 76in weight = 238 lbs professional calc got this for the BMI : 28.9671052632 i tried both methods found Method 1 : (weight/height^2) * 703 BMI got : 41828.5 graal formula PHP Code:
graal formula PHP Code:
|
Dunno, but I just inputted into a calculator(regular, used the formula) and got 28.96710...
Try, (this.weight*703)/(this.height^2); ? |
nope
dont know if this will help any :/ PHP Code:
|
No idea, I used the formula in a calculator myself and it worked.
Try defining the numbers in the variables yourself without the getText and such? And also, I didn't mention it, but the height must be in inches. |
yeah, I'm using 76 as inches which is 6"4' I'll in a sec
FIXED!!! Thanks Dusty for your help, I changed this.height to this.height1, I think this.height is set somewhere else but I couldn't find it :P |
Hmm, ya, I think this.height might be predefined, I forgot all about that.
|
this.height would be the height variable for what ever object you are in. It seems you were probably in a GUI control judging by your script so that would be the control's height ;)
|
Quote:
|
| All times are GMT +2. The time now is 03:45 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.