bitflag()

Scalar. Returns a value with all bits set to zero, except the specified bit.

Syntax

bitflag ( bit )

Parameters

bit

An integer indicating which bit to set, starting from 0 as the least-significant bit.

Usage

The function returns an integer.

Example

bitflag( 3 ) returns 8 or 1000 in binary.