For the complete documentation index, see llms.txt. This page is also available as Markdown.

BitNot

Performs a bitwise logical NOT operation.

Method Signature

BitNot(number=[long])

Arguments

Argument
Type
Required
Description
Default

number

long

true

Numeric value for bitwise NOT.

Examples

Calculate bitwise logical NOT

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

Run Example

bitNot( 0 );

Result: -1

Additional Examples

Run Example

Last updated

Was this helpful?