Inverts the bits in a number

Syntax

BITNOT(<expN>)

<expN>

A 32-bit integer.

Description

BITNOT( ) inverts all 32 bits in <expN>. All zeroes become ones, and all ones become zeroes.

To invert specific bits, use BITXOR( ).