This function determines the sign of a number.
Sgn(number)
The following table shows the return values for the Sgn function.
If number is |
Sgn returns |
Greater than 0 | 1 |
Equal to 0 | 0 |
Less than 0 | –1 |
The sign of the number parameter determines the return value of the Sgn function.