Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

ISIGNED

Examples

ISIGNED(x) returns the result of casting x to a signed integer value without changing its bit pattern.

Read syntax diagramSkip visual syntax diagram>>-ISIGNED(x)--------------------------------------------------><
 
x
Expression. x must have a computational type.

If x is not an integer, i.e. if x is not REAL FIXED BIN with zero scale factor, then it is converted to REAL FIXED BIN(M,0).

ISIGNED( x ) returns, for integer x, a value with the same bit pattern as x but the attributes SIGNED FIXED BIN(p).

If x is UNSIGNED, p is given by:

If precision(x) = 8, 16, 32 or 64, then p = precision(x) - 1 else p = precision(x)

If x is SIGNED, p is equal to the precision of x.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)