DIM

Returns the positive difference of the instantaneous values of two expressions, each representing a numerical value.
DIM(x1, x2) = 0 if x1 x2
DIM(x1, x2) =x1-x2 if x1 > x2 
 
Note:  
DIM is a discontinuous function. Use it with caution.

Format

DIM(x1, x2)

Arguments

 
x1
Any valid expression that evaluates to a real number.
x2
Any valid expression that evaluates to a real number.

Example

The following example illustrates the use of the DIM function:
 
Function
DIM(5*4,5)
Results
15