Jump to content
Sign in to follow this  

Log() with custom Base number

Recommended Posts


Hi guys :)

It's just a shortie, which can solve logarithm on any base, not only E-based or 10-based (like most ofthe calculators).


In my code, $Number (1st argument) indicates n and the 2nd argument ($Base) indicates b.

And here is the source :D

Func ExpertLog($Number, $Base)
    return Log($Number) / Log($Base)

That's all :D

  • Like 1

Share this post

Link to post
Share on other sites

Thank You, I was looking for this :)

Edited by TheSeeker

"Let me win[color=rgb(68,68,68);font-family:arial, sans-serif;font-size:small;], [/color]but if I cannot[color=rgb(68,68,68);font-family:arial, sans-serif;font-size:small;] win, let me be brave in the attempt"[/color]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.