ln: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function ln== Returns the natural logarithm of a number. ===Usage=== <source lang="mtmacro" line> [h: val = ln(num)] </source> ===Examples=== <source lang="mt...)
 
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function ln==
{{MacroFunction
|name=ln
|description=
Returns the [[wp:Natural_logarithm|natural logarithm]] of a number.
Returns the [[wp:Natural_logarithm|natural logarithm]] of a number.


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: val = ln(num)]
[h: val = ln(num)]
</source>
</source>


 
|example=
===Examples===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r: ln(5)]
[r: ln(5)]
</source>
</source>
Returns 1.6094379124341002817999424223671667277812957763671875
Returns 1.6094379124341002817999424223671667277812957763671875
}}
[[Category:String List Function]]

Revision as of 02:55, 9 March 2009

ln() Function

Returns the natural logarithm of a number.

Usage

[h: val = ln(num)]

Example

[r: ln(5)]
Returns 1.6094379124341002817999424223671667277812957763671875