z/OS Language Environment Programming Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


CEESxNWN—Nearest whole number

z/OS Language Environment Programming Reference
SA38-0683-00

CEESxNWN performs the mathematical function nearest whole number by using the equation:
Equation for mathematical function nearest whole number

and the resulting v is expressed as a floating-point number.

The following routines are provided for the various data types supported:
CEESSNWN
32-bit single floating-point number
CEESDNWN
64-bit double floating-point number
Read syntax diagramSkip visual syntax diagram
Syntax

>>-CEESxNWN--(--parm1--,--fc--,--result--)---------------------><

parm1 (input)
The input to the nearest whole number 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 nearest whole number routine. The output range varies:
For Output range
Single-precision routines:
Output range for single-precision routines
Double-precision routines:
Output range for double-precision routines

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014