MyChat Scripts Engine: LogN
Computing the logarithm of X for a specified Base.
Syntax
function LogN(Base, x: extended): extended;
Parameters and return values
Parameter |
Type |
Value |
Base |
extended |
Base of the logarithm; |
x |
extended |
number from which you need to compute the logarithm. |
Fucntion result
Returns the log base Base of X.
Example
var
y: extended;
begin
y := LogN(3, 243);
mLogScript(FloatToStr(y), '');
end.
Script work result
[20:52:13] (Log "LogN"): 5.000000000000
[20:52:13] (Run "LogN"): Script operation time: 5 ms
[20:52:13] (Run "LogN"): Script done successfully.