neg
-a, checked.
Flags
| Flag | Value |
|---|---|
| Kind | scalar |
| Nulls | a null argument gives null |
| Deterministic | yes |
| Order matters | no |
| Decomposable | no |
Example
A pipeline from the language's tested corpus that uses neg, over the example tables.
from orders
filter qty <= 9
derive {total = amount * 2, plus = qty + 1, net = amount - 1.50, cents = qty % 3, neg = -qty, absq = abs(qty)}In a plan:
{
"args": [
{
"col": 3
}
],
"fn": "neg"
}