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 operator 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

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com