- Introduction
- Platform
- Tutorial
- Language reference
- Verbs
- Iterators
- Queries
- Dynamic parsers
- Language idioms
- Standard library
- Plugins
- For Python developers
- For KDB+ developers
- Application examples
- FAQ
Monadic - (negate)
Inverts signs of numbers. Right atomic.
Syntax: -<x>
; -[<x>]
; neg <x>
; neg[<x>]
o)-(1 2 3)
-1 -2 -3
o)neg(1 2 3)
-1 -2 -3
o)neg(1 2 3; -4 -5)
-1 -2 -3
4 5
o)neg 01001b
10110b
o)
o)-(2<3)
0b
o)
Null does not have a sign:
o)neg (0W;-0w;0N)
-0W
0w
0N
o)