numeric.bitMaskRead()
Performs a bitwise mask read operation. Returns an integer, created from length bits of number, beginning at start.
numeric.bitMaskRead( start=number, length=number )
Returns: Number
Argument | Description |
---|---|
start
number,
required
|
Integer, in the range 0-31, inclusive; start bit for read |
length
number,
required
|
Integer, in the range 0-31, inclusive; length of mask |
Examples
writeOutput(255.0.bitMaskRead(5, 5)); writeOutput("<br>"); writeOutput(255.0.bitMaskRead(0, 4));