Difference between revisions of "ApCoCoA-1:Fn.Ln2N"

From ApCoCoAWiki
(New page: <command> <title>Fn.Ln2N</title> <short_description>Returns the natural logarithm of 2 rounded to accuracy <tt>Acc</tt>.</short_description> <syntax> Fn.Ln2N(Acc:INT):RAT </syntax> <de...)
 
Line 23: Line 23:
 
<see>  Fn.GetAccuracy</see>
 
<see>  Fn.GetAccuracy</see>
 
<key>Fn.Ln2N</key>
 
<key>Fn.Ln2N</key>
<key>apcocoa/elemfns.Ln2N</key>
+
<key>elemfns.Ln2N</key>
 
<key>Ln2N</key>
 
<key>Ln2N</key>
 
<wiki-category>Package_elemfns</wiki-category>
 
<wiki-category>Package_elemfns</wiki-category>
 
</command>
 
</command>

Revision as of 14:12, 4 May 2011

Fn.Ln2N

Returns the natural logarithm of 2 rounded to accuracy Acc.

Syntax

Fn.Ln2N(Acc:INT):RAT

Description


  • @param Acc The desired accuracy.

  • @return Returns the natural logarithm of 2 rounded to accuracy Acc.

Example

R := Fn.Ln2N(30);
Dec(R, 40);

0.693147180559945309417232121458
-------------------------------

Fn.Ln2

Fn.SetAccuracy

Fn.GetAccuracy