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.

Examples

PRINT BChg(15, 1)
<hr>13

PRINT BChg(13, 1)
<hr>15

See also

Bits Manipulation Functions  Logical Operators