NOTb

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Operators > Logical >

NOTb

 

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