$Log or $Log_e

From m204wiki
Revision as of 18:41, 20 December 2017 by JAL (talk | contribs) (minor formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.