bitMaskClear

Description

Performs a bitwise mask clear operation.

Categories

Related

Syntax

BitMaskClear(number, start, length)

Attributes

AttributeDescriptionRequiredDefault
lengthInteger, in the range 0-31, inclusive; length of mask
number32-bit signed integer
startInteger, in the range 0-31, inclusive; start bit for mask

Returns

A number, bitwise cleared, with length bits beginning at start.

Usage

Bit functions operate on 32-bit signed integers, in the range -2147483648 – 2147483647.

Example

<h3>BitMaskClear Example</h3> 
 
Returns number bitwise cleared with length bits beginning from start.</p> 
 
BitMaskClear(255, 4, 4): <cfoutput>#BitMaskClear(255, 4, 4)#</cfoutput></p> 
BitMaskClear(255, 0, 4): <cfoutput>#BitMaskClear(255, 0, 4)#</cfoutput></p> 
BitMaskClear(128, 0, 7): <cfoutput>#BitMaskClear(128, 0, 7)#</cfoutput></p>