![]() ![]() ![]() |
|
TestBit | ||
Result = TestBit(Value, BitNo) | ||
Parameters: Value = An integer value BitNo = The bit you want to test (0 = least significant bit) |
||
Returns: Result |
||
TestBit checks if a specified bit of is set or cleared. If the bit is set TestBit returns 1, else it returns 0. Mini Tutorial: Showing the effect of TestBit
This example would output.
|
Related Info: | ClearBit | SetBit | SwapBit : |
|
|||||||||||||||||||||||||||||||||||||||
![]() ![]() ![]() ![]() ![]() |
(c) Copyright 2002 - 2025 - Kevin Picone - PlayBASIC.com |