User Guide : Using Content Extraction Language : Language Syntax and Examples : Sgn (number)
 
Share this page             
Sgn (number)
This built-in function returns a value indicating the sign of a number, whether positive, negative or 0. The argument number can be any valid numeric expression.
Example
If number > 0, Sgn(number) returns 1.
If number = 0, Sgn(number) returns 0.
If number < 0, Sgn(number) returns -1.