Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

SIGN

SIGN returns an unscaled REAL FIXED BINARY value that indicates whether x is positive, zero, or negative.

Read syntax diagramSkip visual syntax diagram>>-SIGN(x)-----------------------------------------------------><
 
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.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)