<< Integer_pal Integer palette BITSET >>

Scilab Help >> Xcos > palettes > Integer palette > BITCLEAR

BITCLEAR

Clear a Bit

Block Screenshot

Contents

Description

This block sets to 0 the specified bit of its input. The user gives the bit index in the field Index of Bit with index 0, as that of the least significant bit.The operation can be summarized by this expression:

Sortie = Entrée ∧ Masque

i.e. a bitwise AND between Input and Mask, an integer of the same length as the input with a value 0 for the bit to clear and a value 1 for the other bits.

Data types

The block supports the following types :

Parameters

Default properties

Example

Below a simple use case of the block.

Interfacing function

Computational function

See also


Report an issue
<< Integer_pal Integer palette BITSET >>