Solved

# problem with math.log function in vb.net

Posted on 2008-10-19

I am not sure if I am using the math.log function in vb.net properly.

I am trying to do the formula

%Fat=495/(1.0324-0.19077(log(waist-neck))+0.15456(log(height)))-450

(and converting inches to cm)

with

LbJP.Text = 495 / (1.0324 - 0.19077 * (Math.Log((Val(TxtWaistBL.Text) * 2.54) - (Val(TxtNeck.Text) * 2.54))) + 0.15456 * (Math.Log((Val(TxtHeight.Text) * 2.54)))) - 450

but the number isn't coming out anywhere near close to where it should.

High points for expediency! I need an answer quickly