Performs a bitwise mask clear operation.
A number, bitwise cleared, with length bits beginning at start.
BitMaskClear(number
,start
,length
)
Parameter |
Description |
---|---|
number |
32-bit signed integer |
start |
Integer, in the range 0-31, inclusive; start bit for mask |
length |
Integer, in the range 0-31, inclusive; length of mask |
Bit functions operate on 32-bit signed integers, in the range -2147483648 - 2147483647.
<h3>BitMaskClear Example</h3> <p>Returns number bitwise cleared with length bits beginning from start.</p> <p>BitMaskClear(255, 4, 4): <cfoutput>#BitMaskClear(255, 4, 4)#</cfoutput></p> <p>BitMaskClear(255, 0, 4): <cfoutput>#BitMaskClear(255, 0, 4)#</cfoutput></p> <p>BitMaskClear(128, 0, 7): <cfoutput>#BitMaskClear(128, 0, 7)#</cfoutput></p>