$Log or $Log_e

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Log function

Note: Many $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Log function is the LogE function.

The $Log function (or its alias, $Log_e) returns the natural logarithm (the logarithm base e) of the number x.

Syntax

%num = $Log(x)

%num = $Log_e(x)

If x is not greater than 0, an error message is printed and the request is cancelled.