%Round function


Old name
%RoundR
Function
The function rounds the first argument to the accuracy given by the second argument. The result is a real number.
Declaration
REAL %Round(
   REAL in Arg1, 
   REAL in Arg2
 )
Parameters
Arg1Value to round.
Arg2Result accuracy.
Example
%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
 
Napíšte komentár