Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Computes the bit-wise NOT of its argument.

bit_not(x:number) -> number

The bit_not function computes the bit-wise NOT of x. The operation inverts each bit in the binary representation of the number.

The number to perform bit-wise NOT on.

from {x: bit_not(5)}
{x: -6}

Last updated: