bitNot

Performs a bitwise logical NOT operation.

bitNot(number) → returns Numeric

Argument Reference for the bitNot function

number

Required: Yes
Integer

Examples sample code invoking the bitNot function


Calculate bitwise logical NOT

Uses the bitNot function to perform the logical NOT operation of a signed 32-bit integer (two's complement)

bitNot(0)

Expected Result: -1


Fork me on GitHub