Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%Round function


Old name
%RoundR
Function
The function rounds the first argument to the accuracy given by the second argument. Result The result is a real number.
Declaration


Blok kódu
languageesl
themeConfluence
REAL %Round(
   REAL in Arg1, 
   REAL in Arg2
 )
Parameters


Arg1Value to round.
Arg2Result accuracy.
Example


Blok kódu
languageesl
themeRDark
%Round(123.123,0.01)    ; returns 123.12
 
 %Round(123.123,10.0)    ; returns 120.0
 
 %Round(123.123,5.0)     ; returns 125.0
 
 %Round(123.123,0.2)     ; returns 123.2