BTst
Result = BTst ( Number , Bit )
Return
TRUE if the
Bitth bit of the
Number is set. The bit number of the least significant bit is 0.
The type of
Number may be
Byte,
Short,
Integer, or
Long.
The valid range of
Bit depends on the type of the
Number argument.
Errors
Examples
Print 15, Bin(15, 16)
Print BTst(15, 1)
Print 13, Bin(13, 16)
Print BTst(13, 1)
13 0000000000001101
False
See also