logn


描述

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).


语法:

logn(n, val);


参数 描述
n The log base.
val The input value.


Returns:

实数


例如:

logval = logn(5, num);

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