logn

Returns the log base n of val.

Syntax:

GML Code Example

logn(n, val);


Argument Description
n The log base.
val The input value.


Returns: Real


Description

This function is similar to the log2(n) and log10(n)functions, only you stipulate the log base value. For example, logn(5,25) will return how many 5's we need to multiply to get 25 (which is 2).


Example:

GML Code Example

logval = logn(5, num);

The above code gets the log5 of the value stored in "num".





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here