Indicates the sign of a number.
Copy Code |
---|
double Sgn ( |
The function has the following possible return values:
Parameter Value | Return Value |
---|---|
Greater than zero | 1 |
Equal to zero | 0 |
Less than zero | -1 |
If value cannot be evaluated to a number or is null, the function returns 0.
The sign of the value parameter determines the return value of the Sgn function.