Name
BitClear -- clear a bit (V2.0)
Synopsis
n = BitClear(x, b)
Function
Clears bit number b in x.

Inputs
x
source value
b
bit to clear (0-31)
Results
n
cleared value
Example
Print(BinStr(BitClear(Val("%11111111"), 2)))
The code above clears bit number 2 in the value %11111111 which results in the value %11111011.

Show TOC