CEESxDIM—Positive difference
CEESxDIM returns the positive difference between two numbers by
using one of the following equations:
If | Result |
---|---|
parm1 > parm2 | Then, result = parm1 - parm2 |
parm1 [ parm2 | Then, result = 0 |
The following routines are provided for the various data types
supported:
- CEESIDIM
- 32-bit binary integer
- CEESSDIM
- 32-bit single floating-point number
- CEESDDIM
- 64-bit double floating-point number
- CEESQDIM
- 128-bit extended floating-point number
Syntax >>-CEESxDIM--(--parm1--,--parm2--,--fc--,--result--)-----------><
- parm1 (input)
- The first input to the positive difference routine. The input range is not restricted.
- parm2 (input)
- The second parameter to the positive difference routine. The input range is not restricted.
- fc (output)
- A 12-byte feedback code, optional in some languages,
that indicates the result of this service. If you choose to omit this
parameter, refer to Invoking callable services for the appropriate syntax
to indicate that the feedback code was omitted.
The following symbolic conditions can result from this service:
Code Severity Message number Message text CEE000 0 — The service completed successfully. - result (output)
- The result of the positive difference routine. The output range
is the non-negative numbers.