Not Function

Purpose

Performs a logical bit-wise Not.

Syntax

Not i

i:integer expression

Description

Not i inverts the bit pattern i.

Example

Debug.Show

Trace Bin$(3, 32)

Trace Bin$(10, 32)

Trace Bin$(Not 3, 32)

Trace Bin$(Not 10, 32)

Prints:

00000000000000000000000000000011
00000000000000000000000000001010
11111111111111111111111111111100
11111111111111111111111111110101

Remarks

~ is synonymous with Not and can be used instead.

See Also

And, Or, Xor, Imp, Eqv, %&, |, ~

{Created by Sjouke Hamstra; Last updated: 20/10/2014 by James Gaite}