IUNSIGNED

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

Read syntax diagramSkip visual syntax diagramIUNSIGNED( x)
x
Expression. x must have a computational type.

If x is not an integer, that is, if x is not REAL FIXED BIN with zero scale factor, it is converted to REAL FIXED BIN(p,0).

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

If x is SIGNED, p is given as follows:

  • If precision(x) = 7, 15, 31 or 63, p = precision(x) + 1; otherwise, p = precision(x).
  • If x is UNSIGNED, p = precision(x).

Example

   IUNSIGNED('ff_ff_ff_ff'xn) equals the largest UNSIGNED FIXED BIN(32) value.