Clears (sets to 0) the bit at the specified position in a number.
A new number with the bit at the specified position cleared to 0.
setBitLow(0b1011, 1); // → 0b1001 (clears bit 1)setBitLow(0b1111, 3); // → 0b0111 (clears bit 3)
The original number whose bit is to be cleared.
Zero-based bit position to clear (0 = least-significant bit).
Generated using TypeDoc
Clears (sets to 0) the bit at the specified position in a number.
Returns
A new number with the bit at the specified position cleared to 0.
Example
Remarks