bitmasklong()

Scalar. Returns a value with all bits set to 0, except a specified range of bits.

Syntax

bitmasklong ( first, last )

Parameters

first

The first bit to set, starting from 0 as the least-significant bit.

last

The last bit to set, starting from 0 as the least-significant bit.

Usage

Both arguments must be integers, and the function returns a long.

Example

bitmasklong (33, 35) returns 60129542144 or 111000000000000000000000000000000000 in binary.