your _javascript_ bsa formula ...
<cfscript>
function bsa(weight,height) {
var bsa = (weight^0.425)
* (height^0.725) * 0.007184;
return round(100*bsa)/100;
}
</cfscript>
<cfoutput>#bsa(100,100)#</cfoutput>
give that a shot. :)
> Isaac,
> This is basically what I am working with:
> var answer = Math.pow(txt_weight,0.425) *
> Math.pow(height,0.725) * 0.007184;
> answer = Math.round(100*answer)/100
> It's also known as BSA. I am using it to calculate drug
> dosages. I am thinking that it might be possible to pull
> this into CF.
> Candace K. Cottrell, Web Developer
> The Children's Medical Center
> One Children's Plaza
> Dayton, OH 45404
> 937-641-4293
> http://www.childrensdayton.org
> "There is no right price for the wrong product, even if it
> is inexpensive and delivered on time."
s. isaac dealey 954.927.5117
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
