Clears (sets to 0) a specific bit in a decimal number.
Syntax: ClearBit (Number As Int32, Bit As Int32) As Int32
Syntax: ClearBit (Number As UInt32, Bit As Int32) As UInt32
Bit - The bit that will be cleared. The least significant bit number is 0.
Example:
Sub App_Start
bit.New1
msgbox(Format(bit.DecToBin(3),"d0")) '11
msgbox(bit.ClearBit(3,0)) '2
msgbox(bit.ClearBit(3,1)) '1
End Sub