BChg

Value = BChg ( Number , Bit )

Returns Number with its Bitth bit inverted.


Example

PRINT BChg(15, 1)

13

PRINT BChg(13, 1)

15


See also

AND, Arithmetic operators, BClr, BSet, BTst, NOT, OR, Shl, Shr, XOR


Previous: Atnh / ATanh Next: BClr