|
|
| ClearBit | ||
| Result = ClearBit(Value, BitNo) | ||
| Parameters: Value = An integer value BitNo = The bit you want to clear (0 = least significant bit) |
||
| Returns: Result = Result after the bit was cleared |
||
ClearBit clears a specified bit of a given value. 0 is the least significant bit (LSB), 31 is the most significant bit (MSB). FACTS: * If the specified bit is already cleared ClearBit will not change it. * You can also us ethe And operator to clear groups of bits. Mini Tutorial: Showing the effect of ClearBit
This example would output.
|
| Related Info: | And | Or | SetBit | SwapBit | TestBit | Xor : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |