Log and LogE (Float functions)

From m204wiki
Revision as of 17:55, 2 November 2012 by JAL (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Natural log (base e) of a number (Float class)

The Log and LogE intrinsic functions return a number that is the natural logarithm (the logarithm base ) of the method object value.

LogE is a synonym for Log.


%number = float:Log

%number = float:LogE

Syntax terms

%number A numeric variable to receive the log of the method object.
float A Float value.

Usage notes

  • If float is less than or equal to zero, then the request is cancelled.
  • Log or LogE is an object-oriented version of the $Log function.
  • Log and LogE are available as of Sirius Mods Version 7.3.


The following statement returns 3.14159:log = 1.14472904118518.

printText {~} = {3.14159:log}

See also