math.e: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (New Constants Category)
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 6: Line 6:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[h: e = math.e()]
[h: e = math.e()]
</source>
</syntaxhighlight>


|examples=
|examples=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: math.e()]
[r: math.e()]
[r: math.log( math.e() )]
[r: math.log( math.e() )]
</source>
</syntaxhighlight>
Returns:
Returns:
<pre>
<pre>

Latest revision as of 23:12, 14 March 2023

math.e() Function

Introduced in version 1.3.b48 (estimate)
Returns the mathematical constant e to 16 significant digits. Takes no arguments.

Usage

[h: e = math.e()]

Examples

[r: math.e()]
[r: math.log( math.e() )]

Returns:

 2.718281828459045
 1.0