Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > N

NINT

Scroll Prev Top Next More

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