SIGN
Whether a number is negative, zero or positive.
Syntax
SIGN(x)
| Argument | Meaning |
|---|---|
| x | A number. |
Result
-1, 0 or 1.
Examples
In the example drawing:
| Expression | Gives |
|---|---|
SIGN(-3.5) |
-1 |
SIGN(0) |
0 |
SIGN(7) |
1 |
See also: ABS.
Whether a number is negative, zero or positive.
SIGN(x)
| Argument | Meaning |
|---|---|
| x | A number. |
-1, 0 or 1.
In the example drawing:
| Expression | Gives |
|---|---|
SIGN(-3.5) |
-1 |
SIGN(0) |
0 |
SIGN(7) |
1 |
See also: ABS.
Essential cookies keep the site working and are always on. We use analytics cookies to understand how visitors use our site, and marketing cookies to help us improve the site and our services. You can choose which types of cookies you want to allow. Learn more in our Privacy Policy.