bitclear()

Scalar. Returns the value of an expression after setting a specific bit to zero.

Syntax

bitclear ( expression, bit )

Parameters

expression

The initial value as an integer or a long.

bit

Which bit to clear, starting from 0 as the least-significant bit.

Usage

Any bit argument must be an integer.The function returns the same datatype as the initial expression argument.

Example

bitclear (13, 0) returns 12, or in binary, bitclear (1101, 0) returns 1100. The user cannot specify binary directly.