Navigation:  thinBasic language > Operators > Logical >

NOTb

Previous pageReturn to chapter overviewNext page

 

Description

 

Used to perform NOT bitwise operations.

 

Syntax

 

result = NOTb (expression)

 

Returns

 

Number

 

Remarks

 

NOTb function inverts the bit values of any numeric expression and sets the corresponding bit in result according to the following table:

 

If bit in expression is

The result is

0

1

1

0

 

Restrictions

 

See also

 

Examples