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


CEESxLG2—Logarithm base 2

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

CEESxLG2 performs the mathematical function logarithm base 2 by using the equation:
Equation for logarithm base 2
The following routines are provided for the various data types supported:
CEESSLG2
32-bit single floating-point number
CEESDLG2
64-bit double floating-point number
CEESQLG2
128-bit extended floating-point number
Read syntax diagramSkip visual syntax diagram
Syntax

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

parm1 (input)
The input to the log base 2 routine. The input range is: parm1 > 0.
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.
CEE1US 2 2012 The parameter was less than or equal to limit in math routine routine-name.
result (output)
The result of the log base 2 routine. The output range is: result is greater than or equal to -260 and is less than or equal to 252.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014