|
-
Jul 31st, 2010, 04:58 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Ln function in vbnet.. very urgent!!!
Hi evryone,
I have Ln in my function that I write in excel but in vb it doesn't work
0.215*Ln(4.32/0.3)
it should return the value = 0.573
how can I write this function without using log function (I don't know logs functions)
I didn't understand any explanation in the net , Please I'm stuck with my project!!!

Giving an exact answer
Saves a lot of time!!!
-
Jul 31st, 2010, 05:03 AM
#2
Hyperactive Member
Re: Ln function in vbnet.. very urgent!!!
VB.Net Code:
Private Sub btnLogarithmCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogarithmCalculate.Click '0.215*Ln(4.32/0.3) Dim a As Double = 0.215 * Math.Log(4.32 / 0.3) MsgBox(a.ToString) 'it returns 0.57345406441512 End Sub
-
Jul 31st, 2010, 05:05 AM
#3
Hyperactive Member
Re: Ln function in vbnet.. very urgent!!!
Why do you don't wanna use Log when you use Ln in excel.
You dont need to know how Log is calculated. math class does that for you...
Log in vb = Ln in excel = It is the same thing.
-
Jul 31st, 2010, 05:08 AM
#4
Thread Starter
Addicted Member
Re: Ln function in vbnet.. very urgent!!!
Thank you very much , I'll check it out!

Giving an exact answer
Saves a lot of time!!!
-
Jul 31st, 2010, 09:08 AM
#5
Hyperactive Member
Re: Ln function in vbnet.. very urgent!!!
please, mark the thread resolved...
-
Jul 31st, 2010, 11:30 AM
#6
Thread Starter
Addicted Member
Its works perfect , thank you very much.resolved
thank you

Giving an exact answer
Saves a lot of time!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|