Performs a bitwise mask clear operation.
bitMaskClear(number, start, length)
returns numeric
Name | Type | Required | Default | Description |
---|---|---|---|---|
number | numeric | Yes | Integer | |
start | numeric | Yes | Start bit for the mask (Integer in the range 0-31, inclusive) | |
length | numeric | Yes | Length of bits in the mask (Integer in the range 0-31, inclusive) |
Uses the bitMaskClear function to clear (setting to 0) each of the corresponding bits
bitMaskClear(3, 0, 1)
bitMaskClear(3, 1, 1)
bitMaskClear(10, 1, 2)