Home / lang / bchg 
BChg
Syntax
Value = BChg ( Number AS Integer , Bit AS Integer ) AS Integer

Returns Number with its Bitth bit inverted. The bit number of the least significant bit is 0.

Example
PRINT BChg(15, 1)

13

Example
PRINT BChg(13, 1)

15


See also
Bits Manipulation Functions  Logical Operators