SIGN
Description
SIGN determines the sign of the specified number.
Syntax
SIGN ( number )
Parameter |
Description |
number |
Any number. |
Remarks
SIGN returns 1 if the specified number is positive, -1 if it is negative, and 0 if it is 0.
Examples
This function returns -1:
SIGN(-123)
This function returns 1:
SIGN(123)
Also, see