SIGN()

 

Syntax:

       Then: xx = SIGN(num_expr)

 

num_expr is the number from which to take the sign.

 

Return value is -1 if the number is negative, 0 if zero, and 1 if positive.

 

Version Ref:  4.5

 

Description:

Performs the signum function, returning the sign of the input.

 

Examples: