Log and LogE (Float functions): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax diagram to revised template; fix tags and some links; still some incomplete / unfound links)
m ($log is not a link)
Line 18: Line 18:
==Usage notes==
==Usage notes==
<ul>
<ul>
<li>If <var class="term">float</var> is not greater than zero, the request is cancelled.
<li>If <var class="term">float</var> is less than or equal to zero, then the request is cancelled.
<li><var>Log</var> / <var>LogE</var> are object-oriented versions of the Rocket function: <var>$Log</var>.
<li><var>Log</var> / <var>LogE</var> are available as of <var class="product">[[Sirius Mods|"Sirius Mods"]]</var> Version 7.3.
<li><var>Log</var> / <var>LogE</var> are available as of <var class="product">[[Sirius Mods|"Sirius Mods"]]</var> Version 7.3.
</ul>
</ul>
Line 30: Line 31:
==See also==
==See also==
<ul>
<ul>
<li><var>Log</var> / <var>LogE</var> are object-oriented versions of the <var>[[$Log]]</var> function.
<li><var>PrintText</var> is described in the <var>[[Intrinsic classes#printtext|"System Intrinsic Class"]]</var>.
<li><var>PrintText</var> is described in the <var>[[Intrinsic classes#printtext|"System Intrinsic Class"]]</var>.
</ul>
</ul>
{{Template:Float:Log and LogE footer}}
{{Template:Float:Log and LogE footer}}

Revision as of 10:20, 22 February 2011

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-e) 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 Rocket function: $Log.
  • Log / LogE are available as of "Sirius Mods" Version 7.3.

Examples

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

    printText {~} = {3.14159:log}

See also