Warning
You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.
SGN()
Syntax:
sgn(<int of float expression>)
The SGN() function returns the sign of a numerical argument as follows:
| Argument | Result |
|---|---|
| negative value | -1 |
| zero | 0 |
| positive value (excluding zero) | 1 |