Bitwise.OnesComplement

From Xojo Documentation

Method

Bitwise.OnesComplement(value as UInt64) As UInt64

Supported for all project types and targets.

Computes the one's complement of value. Each bit of the number is inverted: Zeros replaced with ones and vice versa.

Sample Code

You can also compute the one's complement of value using the Xor operator.

Var X As UInt64 = 47 Xor &hffffffffffffffff