Log and LogE (Float functions): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
{{Template:Float:Log and LogE subtitle}}
{{Template:Float:Log and LogE subtitle}}


The <var>Log</var> and <var>LogE</var> <var>[[Intrinsic classes|intrinsic]]</var> functions return a number that is the natural [http://en.wikipedia.org/wiki/Logarithm logarithm] (the logarithm base-''[http://en.wikipedia.org/wiki/E_%28mathematical_constant%29 e]'') of the method object value.
The <var>Log</var> and <var>LogE</var> <var>[[Intrinsic classes|intrinsic]]</var> functions return a number that is the natural [http://en.wikipedia.org/wiki/Logarithm logarithm] (the logarithm base [http://en.wikipedia.org/wiki/E_%28mathematical_constant%29 &#x212f;]) of the method object value.


<var>LogE</var> is a synonym for <var>Log</var>.
<var>LogE</var> is a synonym for <var>Log</var>.

Revision as of 19:17, 8 February 2012

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.

Syntax

%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 / LogE are object-oriented versions of the $Log function.
  • Log / LogE are available as of Sirius Mods Version 7.3.

Examples

The following statement returns "3.14159:log = 1.14472904118518".

printText {~} = {3.14159:log}

See also