Difference between revisions of "ApCoCoA-1:Fn.SetAccuracy"
From ApCoCoAWiki
S schuster (talk | contribs) (New page: <command> <title>Fn.SetAccuracy</title> <short_description>Set the default accuracy.</short_description> <syntax> Fn.SetAccuracy(N:INT):NULL </syntax> <description> N must be positive....) |
S schuster (talk | contribs) |
||
Line 27: | Line 27: | ||
</example> | </example> | ||
</description> | </description> | ||
+ | <see> Fn.GetAccuracy</see> | ||
<key>Fn.SetAccuracy</key> | <key>Fn.SetAccuracy</key> | ||
<key>apcocoa/elemfns.SetAccuracy</key> | <key>apcocoa/elemfns.SetAccuracy</key> |
Revision as of 18:01, 3 May 2011
Fn.SetAccuracy
Set the default accuracy.
Syntax
Fn.SetAccuracy(N:INT):NULL
Description
N must be positive. An accracy of N means that all results X are rounded
such that | X - TrueValue | <= 0.5*10^(-N).
@param N the accuracy to be set.
Example
Fn.SetAccuracy(10); X1 := Fn.Sin(1); Fn.SetAccuracy(30); X2 := Fn.Sin(1); Dec(X1, 100); Dec(X2, 100); 0.8414709848 ------------------------------- 0.84147098480789650665250232163 -------------------------------