The difference X-Y if it is positive; otherwise zero.
Elemental function
Same as X.
DIM (-3.0, 2.0) has the value 0.0. DIM (-3.0, -4.0) has the value 1.0.