Difference between revisions of "ApCoCoA-1:Fn.Round"
From ApCoCoAWiki
m (insert version info) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Version|1}} | ||
<command> | <command> | ||
<title>Fn.Round</title> | <title>Fn.Round</title> | ||
Line 21: | Line 22: | ||
</example> | </example> | ||
</description> | </description> | ||
− | <see> | + | <see>ApCoCoA-1:Fn.RoundN|Fn.RoundN</see> |
− | <see> | + | <see>ApCoCoA-1:Fn.SetAccuracy|Fn.SetAccuracy</see> |
− | <see> | + | <see>ApCoCoA-1:Fn.GetAccuracy|Fn.GetAccuracy</see> |
<key>Fn.Round</key> | <key>Fn.Round</key> | ||
<key>elemfns.Round</key> | <key>elemfns.Round</key> | ||
<key>Round</key> | <key>Round</key> | ||
− | <wiki-category>Package_elemfns</wiki-category> | + | <wiki-category>ApCoCoA-1:Package_elemfns</wiki-category> |
</command> | </command> |
Latest revision as of 10:05, 7 October 2020
This article is about a function from ApCoCoA-1. |
Fn.Round
Round a number.
Syntax
Fn.Round(X:RAT):RAT
Description
This function rounds the given value X to the current global accuracy.
@param X The value to round.
@return Returns X rounded to the accuracy Acc.
Example
Fn.SetAccuracy(3); R := Fn.RoundN(3.14159); Dec(R, 10); 3.142 -------------------------------