9.3.41 DIM (X, Y)

Description:  Returns the difference between two numbers (if the difference is positive). 
Class:  Elemental function; Generic 
Arguments:  X Must be of type integer or real.  
  Y Must have the same type and kind parameters as X.  
Results:  The result type is the same as X. The value of the result is X - Y if X is greater than Y; otherwise, the value of the result is zero. 

Specific Name  Argument Type  Result Type 
  INTEGER(1)  INTEGER(1) 
IIDIM  INTEGER(2)  INTEGER(2) 
IDIM 1  INTEGER(4)  INTEGER(4) 
KIDIM  INTEGER(8)  INTEGER(8) 
DIM  REAL(4)  REAL(4) 
DDIM  REAL(8)  REAL(8) 
QDIM  REAL(16)  REAL(16) 
1 Or JIDIM.

Examples

DIM (6, 2) has the value 4.

DIM (-4.0, 3.0) has the value 0.0.


Previous Page Next Page Table of Contents