Log and LogE (Float functions): Difference between revisions
Jump to navigation
Jump to search
m (→Usage notes) |
m (→Syntax terms) |
||
Line 13: | Line 13: | ||
<td>A numeric variable to receive the log of the method object. </td></tr> | <td>A numeric variable to receive the log of the method object. </td></tr> | ||
<tr><th>float</th> | <tr><th>float</th> | ||
<td>A Float value.</td></tr> | <td>A <var>Float</var> value.</td></tr> | ||
</table> | </table> | ||
Revision as of 08:12, 23 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 $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}