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

IUNSIGNED

Examples

IUNSIGNED(x) returns the result of casting x to an unsigned integer value without changing its bit pattern.

Read syntax diagramSkip visual syntax diagram>>-IUNSIGNED(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).

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

If x is SIGNED, p is given by:

If precision(x) = 7, 15, 31 or 63, then p = precision(x) + 1 else p = precision(x)

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


Terms of use | Feedback

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