bitNot

Performs a bitwise logical NOT operation.

bitNot(number) → returns numeric

Argument Reference

number numeric
Required

Integer

Examples
Sample code invoking the bitNot function

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

bitNot(0)

Expected Result: -1

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub