BitwiseNot

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
bitwise not <Operand>
Associationscom.livecode.bitwise
Summary

Performs a bitwise NOT operation on the binary representation of Operand.

Parameters
NameTypeDescription
Operand

An expression which evaluates to an integer.

Example
variable tVar as Number
put bitwise not -5 into tVar -- tVar contains 4
Values
NameTypeDescription
return

The integer whose binary representation is the result of the bitwise NOT operation.

Description

Bitwise not returns the complement of Operand as a signed two's complement integer, i.e. equivalent to -(x + 1).

Tagsbitwise operations