DIM intrinsic function
Standard: F77 F90 F95 F2003 F2008 Example program
<Syntax>
DIM ( X, Y )
X : Integer or Real;
Y : Same type and kind as X, conformable with X;
the NAG Fortran Compiler also permits Y to have a different kind (this is non-standard);
Result : Same type as X, with kind the same as the kind of X+Y.
<Semantics>
The result is the maximum of X−Y and zero.
Like many intrinsic functions, this is elemental; if either (or both) of X and Y is an array, the result will be an array with that shape, with the value being computed elementwise.
<Related>