9.86. DIM
9.86 DIM — Positive difference
- Description:
-
DIM(X,Y)
returns the differenceX-Y
if the result is positive; otherwise returns zero. - Standard:
-
Fortran 77 and later
- Class:
-
Elemental function
- Syntax:
-
RESULT = DIM(X, Y)
- Arguments:
-
X The type shall be INTEGER
orREAL
Y The type shall be the same type and kind as X. - Return value:
-
The return value is of type
INTEGER
orREAL
. - Example:
-
program test_dim integer