ISIGNED

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

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

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

If x is UNSIGNED, p is given as follows:
  • If precision(x) = 8, 16, 32, or 64, p = precision(x) - 1; otherwise, p = precision(x).
  • If x is SIGNED, p = precision(x).

Example

   ISIGNED('ff_ff_ff_ff'xu) equals the SIGNED FIXED BIN(31) value -1.