BitMaskClear

Description

Returns number bitwise, cleared, with length bits beginning from start.

Category

Mathematical functions

Syntax

BitMaskClear(number, start, length) 

See also

BitMaskRead, BitMaskSet

Parameters

Parameter
Description
number
32-bit signed integer to mask
start
32-bit signed integer; the starting bit for masking
length
32-bit signed integer; the length of mask

Usage

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

Example

<!--- This example shows BitMaskClear --->
<html>
<head>
<title>BitMaskClear Example</title>
</head>

<body>
<H3>BitMaskClear Example</H3>

<P>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>

</body>
</html>