BITNOT()

BITNOT()

Top  Previous  Next

 

The BITNOT() function forms the bitwise logical NOT of an integer value.

 

 

Format

 

BITNOT(expr)

 

where

 

exprevaluates to an integer.

 

 

The BITNOT() function converts expr to a 32 bit integer and forms a result value by inverting each bit.

 

 

Example

 

N = BITNOT(A)

 

This statement sets N to the bitwise logical inverse of A.

 

 

See also:

BITAND(), BITOR(), BITRESET(), BITSET(), BITTEST(), BITXOR(), SHIFT()