SIGN
Syntax:
SIGN ( x )
Description: Determines the sign of x.
Arguments:
Name |
Type |
Description |
---|---|---|
x |
number |
The number whose sign is to be determined. |
Return Type and Value: number – 1 if x is positive, 0 if x is 0, and -1 if x is negative.
example: