ISIGNED(x) returns the result of casting x to a signed integer value without changing its bit pattern.
|
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.