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

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  

  • Create New...