SIGN function
Synopsis
This function
returns the sign of a number. The returned value is 1 if the number
is positive, -1 if the number is negative and 0 if the number is
equal to zero.
Variations
SIGN(
Number)
Returns the sign of a
number.
Details |
Examples |
Details and examples
Parameters
Number
Specifies the number to read.
Supported types: Numeric.
Returns
Examples
| 1. |
The following example returns 1.
SIGN(2)
|
| 2. |
The following example returns 0.
SIGN(0)
|
| 3. |
The following example returns -1.
SIGN(-2)
|