Returns the sign of the number.
For positive numbers 1 is returned, for negative -1 and for 0 is 0 returned.
Sgn( X )
| X | The number to determine the sign of |
|---|
Numeric value
//The value of variable x is the sign value
//of the current value of the database
//field {Angles} for each evaluation of this formula
NumberVar x = Sgn({Angles})
//some special values of sgn Sgn(-100) //-1 Sgn(-1) //-1 Sgn(0) //0 Sgn(1) //1 Sgn(100) //1