Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > D

DIM

Scroll Prev Top Next More

(DIM(arg1,arg2))

 

Returns the positive difference between arg1 and arg2. Arg1 must be a value with a DOUBLE, REAL, NUMERIC, or INTEGER data type. Arg2 must be any value with a DOUBLE, REAL, NUMERIC, or INTEGER data type other than 0. The result is always positive or zero. If the result is less than or equal to zero, DIM returns 0.

 

In the following example, the value of vdim1 is 0; vdim2 is 2; vdim3 is 2; vdim4 is 0.

 

SET VAR vdim1 = (DIM(2,4))

SET VAR vdim2 = (DIM(4,2))

SET VAR vdim3 = (DIM(-2,-4))

SET VAR vdim4 = (DIM(-4,-2))