ApCoCoA-1:Fn.Round

From ApCoCoAWiki
Revision as of 16:11, 2 October 2020 by AndraschkoBot (talk | contribs) (Bot: Category moved)

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
-------------------------------

Fn.RoundN

Fn.SetAccuracy

Fn.GetAccuracy