bitnot()

Scalar. Returns the value of an expression with all bits inverted.

Syntax

bitnot ( expression )

Parameters

expression

An integer or a long.

Usage

Returns the value of an expression after the bitwise operation is performed. Bits that were 0 become 1, and vice versa. The function returns the same datatype as the argument.

Example

bitnot (7) returns -8, or in binary, bitnot (111) returns 11111111111111111111111111111000. The user cannot specify binary directly.