From the manual.

Code:
~ Performs a bit-wise mathematical negation (NOT) operation on a number.