bitNot

Performs a bitwise logical NOT operation.

bitNot(number) → returns numeric

bitNot Argument Reference

number numeric
Required

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