Identifies the sign (positive or negative) of a number.
Sgn ( numExpr )
numExpr
Any numeric expression.
The following table shows the values that the Sgn function returns.
Sign of numExpr |
Value |
---|---|
Negative |
-1 |
Zero |
0 |
Positive |
1 |