Thread: problem
View Single Post
Old Mar 17th, 2008, 9:40 AM   #5
tyson642
Newbie
 
Join Date: Mar 2008
Posts: 3
Rep Power: 0 tyson642 is on a distinguished road
Re: problem

i have tried using the ^ to no effect

the program i am using requires to find the bmi (body mass index) of a person with the formula

BMI = weight in kilograms / height in metres^2

i have tried using this to no effect please help

i also need ther code to put the answer to 1 decimal place

thanks

edit: here is the code that i have been using

usersbmi(Counter) = usersweight(Counter) / usersheight(Counter) ^ 2
i think that it may be working but justs needs to be rounded to the decimal place e.g 24=24.3

Last edited by tyson642; Mar 17th, 2008 at 9:54 AM.
tyson642 is offline   Reply With Quote