SIS function blocks > SIS Math Blocks > Logic Solver Calculation function block > Expressions in DeltaV SIS Software > Functions in Logic Solver Expressions

ROUND function

ROUND (x). Round float value x to nearest integer value.

Syntax:

'external reference' := ROUND(Real value);

Example:

VAR
   T63; T64; T17; T18; (* Temporary values *)
END_VAR;
T63 := .7;
T64 := 15.403;
T17 := ROUND(T63);
T18 := ROUND(T64);

The above example shows T63 set to the value of .7 and T64 set to the value of 15.403. T17 is set to the result of ROUND(T63), which is 1 and T18 is set to the result of ROUND(T64), which is 15.