Atom - ~ - Bitwise NOT

Characters: ~

Tags: bitwise , math , number , vectorize

Arity: monadic

This atom is monadic, which means it takes one argument.

Functionality

Compute the bitwise inverse of a number.

Details

For integers, equivalent to -1 - z. Floating numbers get truncated. Complex numbers and single characters give 0.