NINT
Top  Previous  Next

(NINT(arg))

Rounds a number that has a TEXT, REAL, DOUBLE, NUMERIC, or CURRENCY data type to the nearest integer, returning a value that has an INTEGER data type.

In the following example, the value of vnint1 is 3 and the value of vnint2 is 4.

SET VAR vnint1 = (NINT(2.6))  
SET VAR vnint2 = (NINT(4.4))