XL Fortran for AIX 8.1

Language Reference


DIM(X, Y)

The difference X-Y if it is positive; otherwise zero.

X
must be of type integer or real.

Y
must be of the same type and kind type parameter as X.

Class

Elemental function

Result Type and Attributes

Same as X.

Result Value

Examples

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

Notes:

  1. IBM Extension: the ability to specify a nondefault integer argument.

  2. IBM Extension.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]