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.
Specific Name | Argument Type | Result Type | Pass As Arg? |
---|---|---|---|
IDIM | any integer 1 | same as argument | yes |
DIM | default real | default real | yes |
DDIM | double precision real | double precision real | yes |
QDIM 2 | REAL(16) | REAL(16) | yes |