up previous next
Round a number to a desired accuracy.
Fn.RoundN(X:RAT,Acc:INT):RAT
|
This function rounds the given value
X to the given accuracy
Acc.
- @param X The value to round.
- @param Acc The desired accuracy.
- @return Returns X rounded to the accuracy Acc.
R := Fn.RoundN(3.14159, 3);
Dec(R, 10);
3.142
-------------------------------
|