Clears the bit at the specified position (sets it to 0).
This function performs a bitwise AND operation with a mask to ensure that the bit at the kth position is set to 0.
k
0
The new number with the bit at position k cleared (set to 0).
The number in which the bit will be cleared.
The position of the bit to clear (0-indexed).
Generated using TypeDoc
Clears the bit at the specified position (sets it to 0).
This function performs a bitwise AND operation with a mask to ensure that the bit at the
kth position is set to0.Returns
The new number with the bit at position
kcleared (set to 0).