ISIGNED

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, 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:

Example

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





Published: 23 December 2018