Results 1 to 6 of 6

Thread: [RESOLVED] Ln function in vbnet.. very urgent!!!

  1. #1

    Thread Starter
    Addicted Member noam309's Avatar
    Join Date
    Aug 2006
    Posts
    225

    Resolved [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!!!

  2. #2
    Hyperactive Member Zeljko's Avatar
    Join Date
    Oct 2006
    Location
    Internet
    Posts
    441

    Re: Ln function in vbnet.. very urgent!!!

    VB.Net Code:
    1. Private Sub btnLogarithmCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogarithmCalculate.Click
    2.         '0.215*Ln(4.32/0.3)
    3.         Dim a As Double = 0.215 * Math.Log(4.32 / 0.3)
    4.         MsgBox(a.ToString)  'it returns 0.57345406441512
    5. End Sub
    1. If this post helped you, please Rate it = That's You, saying Thanks, to Me ...Left side of this post: [Rate this post]
    2. Mark this Thread Resolved if your question has been answered That's You, saying Thanks, to Group ...Menu on top of your original Post: [Thread Tools]>[Mark Thread Resolved]
    3.
    Check my site: www.er-ef.netCheck my snippets: Get installed .NET versionsRegex extractingJoin hierarchically nested Datatables in one flattened Datatable


  3. #3
    Hyperactive Member Zeljko's Avatar
    Join Date
    Oct 2006
    Location
    Internet
    Posts
    441

    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.
    1. If this post helped you, please Rate it = That's You, saying Thanks, to Me ...Left side of this post: [Rate this post]
    2. Mark this Thread Resolved if your question has been answered That's You, saying Thanks, to Group ...Menu on top of your original Post: [Thread Tools]>[Mark Thread Resolved]
    3.
    Check my site: www.er-ef.netCheck my snippets: Get installed .NET versionsRegex extractingJoin hierarchically nested Datatables in one flattened Datatable


  4. #4

    Thread Starter
    Addicted Member noam309's Avatar
    Join Date
    Aug 2006
    Posts
    225

    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!!!

  5. #5
    Hyperactive Member Zeljko's Avatar
    Join Date
    Oct 2006
    Location
    Internet
    Posts
    441

    Re: Ln function in vbnet.. very urgent!!!

    please, mark the thread resolved...
    1. If this post helped you, please Rate it = That's You, saying Thanks, to Me ...Left side of this post: [Rate this post]
    2. Mark this Thread Resolved if your question has been answered That's You, saying Thanks, to Group ...Menu on top of your original Post: [Thread Tools]>[Mark Thread Resolved]
    3.
    Check my site: www.er-ef.netCheck my snippets: Get installed .NET versionsRegex extractingJoin hierarchically nested Datatables in one flattened Datatable


  6. #6

    Thread Starter
    Addicted Member noam309's Avatar
    Join Date
    Aug 2006
    Posts
    225

    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
  •  



Click Here to Expand Forum to Full Width