SIGN returns an unscaled REAL FIXED BINARY
value that indicates whether x is positive,
zero, or negative.
- x
- Real expression.
The returned value is given by:
Value of x |
Value Returned |
x > 0 |
+1 |
x = 0 |
0 |
x < 0 |
-1 |
The BIFPREC compiler option determines the precision of the result
returned.