Log and LogE (Float functions): Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
| mNo edit summary | mNo edit summary | ||
| Line 10: | Line 10: | ||
| Available as of version 7.3 of the [[Sirius Mods]], the Log and LogE functions are | Available as of version 7.3 of the [[Sirius Mods]], the Log and LogE functions are | ||
| object-oriented versions of the $Log function. | object-oriented versions of the $Log function. | ||
| == | ==Syntax== | ||
| {{Template:Float:Log syntax}} | {{Template:Float:Log syntax}} | ||
| {{Template:Float:LogE syntax}} | {{Template:Float:LogE syntax}} | ||
| ===Syntax terms=== | |||
| <dl> | <dl> | ||
| <dt>%value | <dt>%value | ||
| Line 20: | Line 20: | ||
| <dd>A Float value. | <dd>A Float value. | ||
| </dl> | </dl> | ||
| ==Usage Notes== | |||
| *If ''number'' is not greater than zero, the request is cancelled. | *If ''number'' is not greater than zero, the request is cancelled. | ||
| ==Examples== | |||
| The following statement returns “''3.14159:log = 1.14472904118518''”. | The following statement returns “''3.14159:log = 1.14472904118518''”. | ||
|      [[Intrinsic classes#printtext|printText]] {~} = {3.14159:log} |      [[Intrinsic classes#printtext|printText]] {~} = {3.14159:log} | ||
| ==See also== | |||
| [[List of intrinsic Float methods]] | [[List of intrinsic Float methods]] | ||
| [[Category: Intrinsic Float methods|Log and Log E function]]   | [[Category: Intrinsic Float methods|Log and Log E function]]   | ||
Revision as of 13:55, 19 January 2011
These 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.
Available as of version 7.3 of the Sirius Mods, the Log and LogE functions are object-oriented versions of the $Log function.
Syntax
%number = float:Log
%number = float:LogE
Syntax terms
- %value
- A numeric variable to receive the log of the method object.
- number
- A Float value.
Usage Notes
- If number is not greater than zero, the request is cancelled.
Examples
The following statement returns “3.14159:log = 1.14472904118518”.
printText {~} = {3.14159:log}
See also
List of intrinsic Float methods